Skip to content

Commit

Permalink
Removing duplicate UIEvent.CHANGE listener which is already TextInput…
Browse files Browse the repository at this point in the history
…Impl
  • Loading branch information
Shallowmallow committed May 24, 2024
1 parent 686a26b commit 93d3db4
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 93d3db4

Please sign in to comment.