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
Currently I see no proper way of achieving this. I also tried picker.set('clear', {muted:true}) as well as picker.set('select', 'clear', {muted:true}).
Scenario: I am doing an AJAX PUT after the picker is modified. If it fails, I want to revert back. I have no problem reverting to an actual date, but I can't revert to a no date, because clearing the picker triggers the callback, which tries another ajax request, which also fails, and so on... (infinite recursion).
Workaround: disconnect the callback, clear, reconnect the callback.
The text was updated successfully, but these errors were encountered:
Ah, I see the problem here. The best way to do this at the moment would be something like this:
picker.set('clear',null,{muted: true})
The picker.clear alias doesn't pass options to the set method. This will be fixed in a future release. For now you can rely on the method mentioned above :)
Currently I see no proper way of achieving this. I also tried
picker.set('clear', {muted:true})
as well aspicker.set('select', 'clear', {muted:true})
.Scenario: I am doing an AJAX PUT after the picker is modified. If it fails, I want to revert back. I have no problem reverting to an actual date, but I can't revert to a no date, because clearing the picker triggers the callback, which tries another ajax request, which also fails, and so on... (infinite recursion).
Workaround: disconnect the callback, clear, reconnect the callback.
The text was updated successfully, but these errors were encountered: