-
Notifications
You must be signed in to change notification settings - Fork 61
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
Strange issue - Fixed #116
Comments
Hi, I have fixed this way for now JS
The 2 indicates the page was accessed by navigation into the history. |
Can you provide an URL or an example demonstrating the issue? |
After investigations, it was an autocomplete issue Here is the code fix:
|
Thanks for the follow-up and showing the workaround! I might add From MDN page:
|
To what I have read putting autocomplete="off" to a form tag will work better compare if applied to an input, but in our case it's not a form, so I don't know how reliable it is. I have tested with Chrome, Opera and Firefox and IE 11 and this is working fine for now. Forcing the code refresh based on browser historic is another alternative but we can see the checkboxed checked then uncheck (this is fast but we can see it) . |
To fix it directly into your plugin code
|
That seems safe, I will apply the change later today. Thank you! |
From [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete) page: > Note: The `autocomplete` attribute also controls whether Firefox will — unlike other browsers — [persist the dynamic disabled state and (if applicable) dynamic checkedness](https://stackoverflow.com/questions/5985839/bug-with-firefox-disabled-attribute-of-input-not-resetting-when-refreshing) of an `<input>` element, `<textarea>` element, or entire `<form>` across page loads. The persistence feature is enabled by default. Setting the value of the `autocomplete` attribute to `off` disables this feature. This works even when the `autocomplete` attribute would normally not apply by virtue of its type. See [bug 654072](https://bugzilla.mozilla.org/show_bug.cgi?id=654072).
From MDN page (https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete): Note: The `autocomplete` attribute also controls whether Firefox will — unlike other browsers — persist the dynamic disabled state and (if applicable) dynamic checkedness of an <input> element, <textarea> element, or entire <form> across page loads. The persistence feature is enabled by default. Setting the value of the `autocomplete` attribute to `off` disables this feature. This works even when the `autocomplete` attribute would normally not apply by virtue of its type. See bug 654072 (https://bugzilla.mozilla.org/show_bug.cgi?id=654072).
From MDN page (https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete): Note: The `autocomplete` attribute also controls whether Firefox will — unlike other browsers — persist the dynamic disabled state and (if applicable) dynamic checkedness of an <input> element, <textarea> element, or entire <form> across page loads. The persistence feature is enabled by default. Setting the value of the `autocomplete` attribute to `off` disables this feature. This works even when the `autocomplete` attribute would normally not apply by virtue of its type. See bug 654072 (https://bugzilla.mozilla.org/show_bug.cgi?id=654072).
From MDN page (https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete): Note: The `autocomplete` attribute also controls whether Firefox will — unlike other browsers — persist the dynamic disabled state and (if applicable) dynamic checkedness of an <input> element, <textarea> element, or entire <form> across page loads. The persistence feature is enabled by default. Setting the value of the `autocomplete` attribute to `off` disables this feature. This works even when the `autocomplete` attribute would normally not apply by virtue of its type. See bug 654072 (https://bugzilla.mozilla.org/show_bug.cgi?id=654072).
Hi,
I have a big issue...
If I select checkboxes and refresh the page = the checkboxes get deselected = OK
If I select checkboxes and go to another the page, and click back from the browser
= the checkboxes are still selected = Not OK
I have checked my localstorage and there are no localstorage for the Selection...
So how come these are still selected?
If I refresh the page there are no more selected checkbox, I'm pulling my hair with this, any clue?
Here is my Datatables settings
The text was updated successfully, but these errors were encountered: