Skip to content
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

Question about stateSave and possible bug. #122

Closed
lenamtl opened this issue Aug 28, 2020 · 1 comment
Closed

Question about stateSave and possible bug. #122

lenamtl opened this issue Aug 28, 2020 · 1 comment

Comments

@lenamtl
Copy link

lenamtl commented Aug 28, 2020

Hi,

I'm doing some tests and find out that even if checkboxes stateSave if set to false it get saved.

It seems that checkboxes stateSave is saving (empty) even if set to false but not always.

How to reproduce:
have the checkboxes setting stateSave set to false

"checkboxes": {
			"selectRow": true,
			"stateSave": false, 
}

load the page, the checkbox settings won't be saved in the statesave so it will end something like this
"naruto":"kurama"}

reload the page now we can see the checkbox[] (sometimes it may appear only after a few refresh) not sure why.

"naruto":"kurama","checkboxes":[]}

Is this supposed to appear even if empty?
Why it's appearing only on reload, not on page load and/or why it appear if set to false?

@mpryvkin
Copy link
Member

When checkboxes.stateSave option is set to false, empty checkboxes array should not appear in the state array, that's a bug. Thanks for reporting, I will have it corrected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants