question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] checkboxPrompt duplicates values

See original GitHub issue

Describe 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:closed
  • Created 2 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
thorlucascommented, Aug 6, 2021

Fairly simple fix, will close the issue once merged in

0reactions
chhoumanncommented, Aug 6, 2021

Thank you!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found