Kotlin / kotlinx.html

Kotlin DSL for HTML
Apache License 2.0
1.63k stars 133 forks source link

Allow adding custom event listeners. #120

Open eiswind opened 5 years ago

eiswind commented 5 years ago

In JSDOMBuilder event listeners get added by setEvent.

else -> path.last().setEvent(event, value)

In case of a vaadin-text-field, that needs a custom 'change' event however this does not work. It does work when I add the listener like

else -> path.last().addEventListener(event, value)

Is there a chance to add a method like this in JSDOMBuilder/TagConsumer?