Skip to content

Commit

Permalink
Merge pull request #71 from Shallowmallow/NoDoubleChangeInput
Browse files Browse the repository at this point in the history
Removing duplicate UIEvent.CHANGE listener which is already TextInput…
  • Loading branch information
ianharrigan authored May 24, 2024
2 parents 686a26b + 93d3db4 commit 6061cdf
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions haxe/ui/backend/ComponentImpl.hx
Original file line number Diff line number Diff line change
Expand Up @@ -292,14 +292,6 @@ class ComponentImpl extends ComponentBase {
_eventMap.set(type, listener);
addEventListener(EventMapper.HAXEUI_TO_OPENFL.get(type), __onKeyboardEvent, false, 0, true);
}

case UIEvent.CHANGE:
if (_eventMap.exists(UIEvent.CHANGE) == false) {
if (hasTextInput() == true) {
_eventMap.set(UIEvent.CHANGE, listener);
getTextInput().textField.addEventListener(Event.CHANGE, __onTextInputChange, false, 0, true);
}
}
}
}

Expand Down

0 comments on commit 6061cdf

Please sign in to comment.