Preserve activatable pulldown selection across toggle
This commit is contained in:
@@ -704,11 +704,6 @@
|
|||||||
if (isActive && !hasSelectedOption) {
|
if (isActive && !hasSelectedOption) {
|
||||||
options[0].setAttribute('aria-checked', 'true');
|
options[0].setAttribute('aria-checked', 'true');
|
||||||
}
|
}
|
||||||
if (!isActive) {
|
|
||||||
options.forEach((option) => {
|
|
||||||
option.setAttribute('aria-checked', 'false');
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
options.forEach((option) => {
|
options.forEach((option) => {
|
||||||
option.classList.toggle('sg-checkbox-field--inactive-selectable', !isActive);
|
option.classList.toggle('sg-checkbox-field--inactive-selectable', !isActive);
|
||||||
|
|||||||
Reference in New Issue
Block a user