Fix bug reported by @Dandandan in which a runtime error leads to a crash
This commit is contained in:
parent
b5f96fda15
commit
b65090173b
1 changed files with 2 additions and 0 deletions
|
@ -289,6 +289,7 @@ Elm.Native.Graphics.Input.make = function(elm) {
|
|||
_:{},
|
||||
string: JS.toString(next),
|
||||
selection: {
|
||||
_:{},
|
||||
start: start,
|
||||
end: end,
|
||||
direction: { ctor: direction }
|
||||
|
@ -302,6 +303,7 @@ Elm.Native.Graphics.Input.make = function(elm) {
|
|||
_:{},
|
||||
string: field.value,
|
||||
selection: {
|
||||
_:{},
|
||||
start: field.selectionStart,
|
||||
end: field.selectionEnd,
|
||||
direction: { ctor: direction }
|
||||
|
|
Loading…
Reference in a new issue