You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched for existing issues that already include this feature request, without success.
Describe the Feature Request
Add the list property to <ion-input>.
<ion-inputlist="my-list"/>
<!-- OR React --><IonInputlist="my-list"/>
<!-- OR whatever syntax for other frameworks. --><datalistid="my-list">
...
</datalist>
Is there a reason it is not supported? Perhaps because it does not represent native text field behavior? Note: There is very little styling possible on <datalist>.
Describe the Use Case
To connect to a <datalist> in order to show suggestions.
Describe Preferred Solution
No response
Describe Alternatives
Here is my current workaround:
<IonItemclassName="ion-no-padding">{/*This is a hack to make sure the input below is styled.*/}<IonInputstyle={{display: 'none'}}/>{/*TODO: Platform-dependent class names.*/}<divclassName="sc-ion-input-ios-h sc-ion-input-ios-s ios input-label-placement-start in-item"><labelhtmlFor="code"className="input-wrapper sc-ion-input-ios"><divclassName="label-text-wrapper label-text-wrapper-hidden sc-ion-input-ios sc-ion-input-ios-s"></div><divclassName="native-wrapper sc-ion-input-ios sc-ion-input-ios-s"><inputname="code"type="text"autoCapitalize="none"autoComplete="off"autoCorrect="off"spellCheck="false"placeholder="or enter code"list="codes"className="native-input sc-ion-input-ios"/><datalistid="codes"><option>aaa</option><option>aab</option><option>aac</option><option>cca</option><option>ccb</option><option>ccc</option></datalist></div></label></div></IonItem>
Related Code
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered:
Prerequisites
Describe the Feature Request
Add the
list
property to<ion-input>
.Is there a reason it is not supported? Perhaps because it does not represent native text field behavior? Note: There is very little styling possible on
<datalist>
.Describe the Use Case
To connect to a
<datalist>
in order to show suggestions.Describe Preferred Solution
No response
Describe Alternatives
Here is my current workaround:
Related Code
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: