[BUG] checkboxPrompt duplicates values
See original GitHub issueDescribe the bug
When usingcheckboxPrompt
with old values, the returned array has duplicate values.
To Reproduce
const values = await checkboxPrompt(['a', 'b', 'c', 'd'], ['a', 'b']);
console.log(values);
If you turn OFF a
and b
, and turn ON c
, you get the correct output: ['c']
.
However, if you leave a
or b
on, they are duplicated in the result: ["a", "b", "a", "b", "c"]
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
display duplicate values when checked two binding checkbox
To fix the issue of duplicate values appearing, simply make the :checkbox selector more specific; restrict it to the #CS-popup element for ...
Read more >Javascript's prompt() contains a "remember this value" checkbox ...
Summary: Javascript's prompt() contains a "remember this value" checkbox → Javascript's prompt() ... Bug 41542 has been marked as a duplicate of this...
Read more >Why am I seeing "DUPLICATES_DETECTED, Use one of ...
The error message "DUPLICATES_DETECTED, Use one of these records?" or similar is being triggered by a duplicate rule that you have active in ......
Read more >Checkbox x-model values are duplicated if node is moved in ...
I am creating a set of responsive search filters, which requires moving a form to a different DOM node (but all within the...
Read more >Bug #805679 “Checkbox bug submission: all radio buttons selected ...
Trying to report a bug after a certain test had failed, I was presented the 'what particular problem do you observe' screen, where...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Fairly simple fix, will close the issue once merged in
Thank you!