Skip to content

Commit

Permalink
TextAreaElement should be InputElement
Browse files Browse the repository at this point in the history
  • Loading branch information
ianharrigan committed May 28, 2024
1 parent 16a2fc6 commit 347eb93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions haxe/ui/backend/TextInputImpl.hx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class TextInputImpl extends TextDisplayImpl {
if ((element is TextAreaElement)) {
cast(element, TextAreaElement).selectionStart = value;
} else {
cast(element, TextAreaElement).selectionStart = value;
cast(element, InputElement).selectionStart = value;
}
return value;
}
Expand All @@ -78,7 +78,7 @@ class TextInputImpl extends TextDisplayImpl {
if ((element is TextAreaElement)) {
cast(element, TextAreaElement).selectionEnd = value;
} else {
cast(element, TextAreaElement).selectionEnd = value;
cast(element, InputElement).selectionEnd = value;
}
return value;
}
Expand Down

0 comments on commit 347eb93

Please sign in to comment.