You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@BernhardBaumrock I can't see to duplicate that. I edited a page with an InputfieldDatetime field using the datepicker and then typed this into the browser dev tools js console:
Every time I change the value in the datepicker, I get a "change" in the console, whether selecting from the datepicker or typing the value in the input.
This widget manipulates its element's value programmatically, therefore a native change event may not be fired when the element's value changes.
The non-standard/custom event handling mechnanism in jQuery does indeed mean that, in my experience, in e.g. our admin it is better to rely on jQuery .on() than JS event listeners.
I'm working on an auto-save feature for my current project. I check for changes in the page editor like this:
Some fields like TinyMCE need special treatment, but I also realised that date inputs also do not trigger a save and I was wondering why.
This is the fix that makes it work:
But I think it would be better to also trigger the
change
event inInputfieldDatetime.js
:The text was updated successfully, but these errors were encountered: