Comments (3)
Might be better for DX if the option slot only renders if there are options.
from formkit.
Might not be a bug?, #option shows whenever you start loading, at that point your await new Promise((resolve) => setTimeout(resolve, 500))
didn't finish yet, so its []
, meaning that when you do option.label
it is undefined, if you do option?.label
to make sure it is not undefined it works.
from formkit.
This issue happens to me even when not using a setTimeout
before my requests.
If the return is any empty array or a promise then shouldn't it not loop through the options anyways and it not be a problem?
Maybe the error is actually being thrown from the selected option being empty, not from the dropdown.
from formkit.
Related Issues (20)
- Can't unselect option by click when I searched for it HOT 1
- Taglist options wrong position when searching HOT 1
- Type error for attribute that is used to set inital value(value) HOT 8
- Dropdown Popover: Non-text id leads to "is not a valid selector" HOT 2
- Performance when loading hundreds of inputs HOT 2
- Mask does not fulfill browser's autofill
- Autocomplete input doesn't update its options correctly HOT 3
- Custom @remove-icon-click function doesn't override native remove handler HOT 6
- Datepicker cannot parse escaped tokens
- i18n - add language - Macedonian HOT 1
- Form flickers between valid and invalid state while user is typing HOT 2
- Mask Input, manually inputting non ASCII characters remains displayed HOT 3
- Togglebuttons: Certain ARIA roles must be contained by particular parents [accessibility] HOT 3
- Togglebuttons: Elements must only use supported ARIA attributes & Required ARIA attributes must be provided [accessibility] HOT 2
- [Autcomplete] Keep already fetched options displayed instead of showing "loading" section HOT 1
- Mask removes fractional separator HOT 1
- Togglebuttons: <li> elements must be contained in a <ul> or <ol> [accessibility] HOT 2
- Autocomplete build issue when upgraded from 0.122.16 to 0.123.1 HOT 2
- Taglist-Options flying in with AutoAnimatePlugin HOT 1
- Pro Slider show-input inputs not reactive HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from formkit.