input text - method setValue no longer works on version 11.0.2
Closed this issue · 5 comments
Describe the bug
Since the latest version v11.0.2, the “setValue” method no longer works on input text.
To Reproduce
Steps to reproduce the behavior:
- Create a choice instance on a input text
- Call setValue. For example : choiceElt.setValue(['test', 'test2']);
- See that input has no values
Choices version and bundle
- Version: v11.0.2
Additional context
No problem with v10.2.0
I have exact the same issue.
I tried out the main version of this packages, by adding this dependency in my package.json "choices.js": "github:Choices-js/Choices#main"
.
Unfortenately the bug still exists.
If I try to add some items to an empty input element using the myChoicesInstance.setValue(['item1', 'item2'])
method, nothing happens. The field stays empty.
const myChoicesInstance = new Choices(document.getElementById('myTextInput'));
myChoicesInstance.setValue(['item1', 'item2']);
I've been busy with other projects, so haven't found the time to build a new release
Shoudn't it work with the "choices.js": "github:Choices-js/Choices#main"
?
I just downloaded 11.0.3 with the fix but it seems that the setValue still doesn't work. I went back to 10.2.0 and it works perfectly.
This bug should probably be reopened since it is definitely still broken.