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),
|
string: JS.toString(next),
|
||||||
selection: {
|
selection: {
|
||||||
|
_:{},
|
||||||
start: start,
|
start: start,
|
||||||
end: end,
|
end: end,
|
||||||
direction: { ctor: direction }
|
direction: { ctor: direction }
|
||||||
|
@ -302,6 +303,7 @@ Elm.Native.Graphics.Input.make = function(elm) {
|
||||||
_:{},
|
_:{},
|
||||||
string: field.value,
|
string: field.value,
|
||||||
selection: {
|
selection: {
|
||||||
|
_:{},
|
||||||
start: field.selectionStart,
|
start: field.selectionStart,
|
||||||
end: field.selectionEnd,
|
end: field.selectionEnd,
|
||||||
direction: { ctor: direction }
|
direction: { ctor: direction }
|
||||||
|
|
Loading…
Reference in a new issue