Switch onChange

edited January 5 in Technical questions


I'm firing off webix.confirm() for the user to confirm the switch trigger, but I can't figure out how to revert back to the original state if the user cancels.

onItemClick works, but I'm noticing that the user can click way outside the switch and still trigger it. https://snippet.webix.com/sdl7f8o6

Is there a workaround here?

I know I can use onChange and then detachEvent() when the user cancels, but I'm wondering if there is a workaround?

UPDATE: I'm going with the toggle view. This seems to be a bug/limitation with switch.


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion