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

Fix display issue w/select_multiple #215

Open
wants to merge 2 commits into
base: development
Choose a base branch
from

Conversation

r0ssing
Copy link
Member

@r0ssing r0ssing commented Oct 19, 2024

This PR aims to fix an issue with select_multiple not displaying selected values

parseSaveValue(savedValue) does not work correctly, as it receives a 'savedValue' of type string, but treats it as an array, causing it to not display the selected items correctly (and also doing an unfortunate iteration on savedValue.length - which then of course is the string length of the concatenated selected items (!) and not the array length as the code expected).

parseSaveValue(savedValue) did not work correctly, as it was receiving a savedValue of type string, but treated it as an array, causing it to not display the selected items correctly (and also doing an unfortunate iteration on savedValue.length - which then was the string length and not the array length as the code expected).
@r0ssing
Copy link
Member Author

r0ssing commented Oct 19, 2024

(I also took the opportunity to get rid of the 'not specified' placeholder value that appears in text boxes)

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

Successfully merging this pull request may close these issues.

3 participants