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

Autocomplete: Multiple values unrecognized from option list #2528

Open
2 tasks done
anaith1903 opened this issue May 17, 2024 · 2 comments
Open
2 tasks done

Autocomplete: Multiple values unrecognized from option list #2528

anaith1903 opened this issue May 17, 2024 · 2 comments
Labels
bug Something is wrong and needs to be addressed external-request Bugs and features reported by individuals from other teams in Trimble modus-autocomplete

Comments

@anaith1903
Copy link

Prerequisites

Describe the issue

When using Modus autocomplete with multi-select, the component behaves inconsistently based on initialization. If initialized with a single option, it recognizes the value from list of options, allowing further selections. With no initial value, users can select options from the list, which are styled as chips.
However, if initialized with multiple options (as a comma-separated list), the component fails to recognize them, displays a "no results found" message, and prevents further selections. Ideally, the autocomplete should recognize comma-separated values from the list, display them as chips, and allow additional selections.

Reduced test cases

https://codepen.io/Anaith-A/pen/KKLdLjO?editors=1010

What operating system(s) are you seeing the problem on?

Windows

What browser(s) are you seeing the problem on?

Chrome

What is the issue regarding ?

@trimble-oss/modus-web-components

What version of npm package are you using ?

v0.28.0

Priority

High

What product/project are you using Modus Components for ?

Sector portal

What is your team/division name ?

Maps

Are you willing to contribute ?

None

Are you using Modus Web Components in production ?

No response

@anaith1903 anaith1903 added the bug Something is wrong and needs to be addressed label May 17, 2024
Copy link

Hello @anaith1903! Thanks for opening an issue. The Modus core team will get back to you soon (usually within 24-hours) and provide guidance on how to proceed. Contributors are welcome to participate in the discussion and provide their input on how to best solve the issue, and even submit a PR if they want to.

Please wait until the issue is ready to be worked on before submitting a PR, or you can reach out to the core team if it is time bound. For trivial things, or bugs that don't change the expected behaviors and UI, you can go ahead and make a PR.

@github-actions github-actions bot added the external-request Bugs and features reported by individuals from other teams in Trimble label May 17, 2024
@cjwinsor
Copy link
Contributor

Need to make sure that setting the value properly adds the chips. (Also, chip styling is weird)

@cjwinsor cjwinsor changed the title Modus autocomplete issue: Multiple values unrecognized from option list Autocomplete issue: Multiple values unrecognized from option list May 17, 2024
@cjwinsor cjwinsor changed the title Autocomplete issue: Multiple values unrecognized from option list Autocomplete: Multiple values unrecognized from option list May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is wrong and needs to be addressed external-request Bugs and features reported by individuals from other teams in Trimble modus-autocomplete
Projects
Status: To Do
Development

No branches or pull requests

2 participants