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
{{ message }}
This repository was archived by the owner on Dec 19, 2024. It is now read-only.
I have a case where I need to set or unset all the checkboxes in a list. I have a few dozen checkboxes.
When looping through the elements and turning on or off the checkbox, the browser becomes unresponsive. It seems as though the performance between setting the checked state on or off is slow. Magnified by a large group of checkboxes to toggle or set, the performance becomes unmanageable.
The above example shows a dom-repeat, but the same issue exists if I just create a bunch of paper-checkbox in a list.
I have tried setting it elementInstance.checked = true/false, elementInstance.setAttribute('checked'), and setting the binding choices[1].checked = false;
Expected outcome
The check should toggle states almost instantly.
Actual outcome
Delay in checkbox changing states, changing even a dozen paper-checkboxes in a loop will cause the browser to hang.
Browsers Affected
Tested Below (have not tested others yet)
[X ] Chrome
[ X] Firefox
Safari 9
Safari 8
Safari 7
Edge
IE 11
IE 10
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Description
I have a case where I need to set or unset all the checkboxes in a list. I have a few dozen checkboxes.
When looping through the elements and turning on or off the checkbox, the browser becomes unresponsive. It seems as though the performance between setting the checked state on or off is slow. Magnified by a large group of checkboxes to toggle or set, the performance becomes unmanageable.
The above example shows a dom-repeat, but the same issue exists if I just create a bunch of paper-checkbox in a list.
I have tried setting it elementInstance.checked = true/false, elementInstance.setAttribute('checked'), and setting the binding choices[1].checked = false;
Expected outcome
The check should toggle states almost instantly.
Actual outcome
Delay in checkbox changing states, changing even a dozen paper-checkboxes in a loop will cause the browser to hang.
Browsers Affected
Tested Below (have not tested others yet)
The text was updated successfully, but these errors were encountered: