-
Notifications
You must be signed in to change notification settings - Fork 59
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
[Bug] - Incorrect error emitted by fw-list-options #904
Comments
Please refer the example code below. Pass the 'id' of the data items that needs to be displayed as the default selection. If no default selection is required, pass an empty array to the
|
Hmm. I'm doing that, but it seems like the log error is happening before the JS code runs. It's receiving an parameter of an empty string, as it is "loading". (Chrome latest/Windows) The stack looks like:
I don't know that I can get my initialization code to run any earlier, as the page is pretty simple. I've tried loading my initialization code both before and after the component is included, but I get the same result. Is see the same error on the documentation page: [https://crayons.freshworks.com/components/core/options-list/] Related, I am also running into a race condition. When I serve my code in the browser, it works fine, but when served out of a cache (as a PWA), the list options get reset to an empty list. I haven't tracked that one down yet. Perhaps these are all wound up together as in the initialization order. |
Component
fw-list-options
Describe the bug
I see a console.error that I can't figure out how to eliminate.
To Reproduce
Steps to reproduce the current behavior:
multiple
set. Mine looks like:Error: Value must be a array for multi-select
I can't figure out any way to eliminate this error. I can set the
value
property, but I can't figure out how I'd make in an array in HTML (it's not possible!).Expected behavior
No error message. I'm not sure what this error is preventing, but it doesn't seem relevant in the multiselect case.
Additional context
I'm not sure if this is an active project. I'm trying it out and curious about it's support. If you want me to fix it, I can-- let me know.
The text was updated successfully, but these errors were encountered: