-
Notifications
You must be signed in to change notification settings - Fork 101
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
b:dateTimePicker with ajax="true" refreshes the whole form on click #678
Comments
This is what the default values should be: |
The problem seems to be If we fix that, does that
|
@ggam @chongma @TheCoder4eu What's your opinion? How can we document the breaking change? |
it definitely needs to be put back to the correct defaults. anybody upgrading to 1.1.0 should test their code before upgrade. can it just be mentioned in the release notes? |
Also see #371. |
Example snippet:
The
ajax="true"
attaches an onclick handler to the date picker action, that issues an AJAX request, rerendering the whole form. The problem is that (apart from unneeded requests), when you click on the picker to select a date, it gets automatically closed making it impossible to use.The workaround is to set the update attribute to none (
update=""
).Anyway, as a user, when I set
ajax="true"
, what I expect is not that every event will result in an AJAX request, but that the value will be updated through an AJAX request. So I propose to change theajax="true"
behaviour to add a listener for thedtchange
event instead ofonclick
. The same would be probably applicable to other components.The text was updated successfully, but these errors were encountered: