hernansartorio / hernansartorio/jquery-nice-select

Fail to update options when they are not strings

Open
#99 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
955
Forks
271
PR merge metrics
No merged PRs in 30d

Description

https://github.com/hernansartorio/jquery-nice-select/blob/bdbb74f72ca10153f7788a8d9ff8786c23db3f3c/js/jquery.nice-select.js#L126

When the library should update the option for the original selected, it fails to do so if the value is interpreted by js as something other than a string.

For example with the following select.
```

Yes
No

```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at js/jquery.nice-select.js around line 126 and reproduce the issue with the provided select containing true and false option values. Trace the update of the original selected option and verify that updates work when a value is interpreted as a non-string. Done means both example options update correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, jquery
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.