-
-
Notifications
You must be signed in to change notification settings - Fork 202
taglist behavior with empty options #586
Copy link
Copy link
Closed
Labels
ProPertains to FormKit ProPertains to FormKit Pro🐛 bugVerified bug by teamVerified bug by team💡 needs ideasOpen to new suggestions and ideasOpen to new suggestions and ideas🔵 priority-33. Lower priority issue3. Lower priority issue🚀 release-readyFeature or fix is complete and on an upcoming release branchFeature or fix is complete and on an upcoming release branch🪄 enhancementNew feature or requestNew feature or request
Milestone
Metadata
Metadata
Assignees
Labels
ProPertains to FormKit ProPertains to FormKit Pro🐛 bugVerified bug by teamVerified bug by team💡 needs ideasOpen to new suggestions and ideasOpen to new suggestions and ideas🔵 priority-33. Lower priority issue3. Lower priority issue🚀 release-readyFeature or fix is complete and on an upcoming release branchFeature or fix is complete and on an upcoming release branch🪄 enhancementNew feature or requestNew feature or request
Type
Fields
Give feedbackNo fields configured for issues without a type.
Reproduction
https://formkit.link/b0e18accf0b6e9f7e00b68f10e46490b
Describe the bug
While trying to use a taglist as a user-entered only input component (no selectable options), I had issues with the input's behavior.
While the documentation states that the default for options prop is [], it appears to be null as the component throws errors when entering values.
Oddly, when explicitly setting the options to [], the component becomes disabled.
I'm able to mostly satisfy my use-case by setting the options to [''] and hiding the dropdown indicator.
Environment
• OS: macOs 13
• Browser chrome
• Version 109