Skip to content

taglist behavior with empty options #586

@ericvandever

Description

@ericvandever

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

Metadata

Metadata

Labels

ProPertains to FormKit Pro🐛 bugVerified bug by team💡 needs ideasOpen to new suggestions and ideas🔵 priority-33. Lower priority issue🚀 release-readyFeature or fix is complete and on an upcoming release branch🪄 enhancementNew feature or request

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions