-
Notifications
You must be signed in to change notification settings - Fork 441
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Confirmation Dialogue #234
Comments
Tried this code, courtesy of "https://stackoverflow.com/questions/46246214/call-function-on-click-on-bootstrap-toggle-checkbox":
Works in jQuery-2.2.4, however when debugging in Visual Studio 2022 I can see EVAL scripts being generated per toggle click and the above completely breaks in jQuery 3.6.4. |
Hi @IglooGary , The last lib version is https://github.com/palcarazm/bootstrap5-toggle Some issues related to unsupported touchevents and double fire of changeEvent had been fixed. I expect your issue is also fixed 😊 |
Thank you, but sadly due to development restrictions, as in current project scope does not include upgrading NuGet packages at this time I am limited to Bootstrap 3.3.7 |
Think I have fixed it, modified the code as follows:
|
I believe an on "Click" event is not supported, however is there a way to present a way of displaying some sort of pop up when clicking a toggle element to ask the user if they intend on committing the change. If not the change is reverted (without triggering another on "Change" event and then ending up with an infinite loop.
The text was updated successfully, but these errors were encountered: