on master help sign in
Fix bug reported by @Dandandan in which a runtime error leads to a crash
b650901Evan Czaplicki
libraries/Native/Graphics/Input.js+2
@@ -289,6 +289,7 @@ Elm.Native.Graphics.Input.make = function(elm) {
289 _:{},
289 _:{},
290 string: JS.toString(next),
290 string: JS.toString(next),
291 selection: {
291 selection: {
292+ _:{},
292 start: start,
293 start: start,
293 end: end,
294 end: end,
294 direction: { ctor: direction }
295 direction: { ctor: direction }
@@ -302,6 +303,7 @@ Elm.Native.Graphics.Input.make = function(elm) {
302 _:{},
303 _:{},
303 string: field.value,
304 string: field.value,
304 selection: {
305 selection: {
306+ _:{},
305 start: field.selectionStart,
307 start: field.selectionStart,
306 end: field.selectionEnd,
308 end: field.selectionEnd,
307 direction: { ctor: direction }
309 direction: { ctor: direction }