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

feat: IonInput with typeahead feature #28634

Closed
3 tasks done
van9petryk opened this issue Dec 5, 2023 · 2 comments
Closed
3 tasks done

feat: IonInput with typeahead feature #28634

van9petryk opened this issue Dec 5, 2023 · 2 comments
Labels

Comments

@van9petryk
Copy link

Prerequisites

Describe the Feature Request

I saw example of typeahead component
https://ionicframework.com/docs/api/select#typeahead-component
but it not satisfy my requirements.

I need typeahead for ion-input component.

Describe the Use Case

Sometimes I just need to provide some options for user to select, but the user can also put they own text inside ion-input.
Also, opening modal each time for typeahead can be frustrating, so need dropdown to appear aside to ion-input.

Describe Preferred Solution

The best solution I saw was https://ng-bootstrap.github.io/#/components/typeahead/examples
It also detect available space on top and bottom of input and put dropdown in best place.
I cannot use it with ionic, because it have selector input[ngbTypeahead] and not sure if patch ion-input[ngbTypeahead] will help

Screenshot_5
Screenshot_6

Describe Alternatives

Other good example is ng-select, but it is more about select, than simple input.

Related Code

No response

Additional Information

No response

@ionitron-bot ionitron-bot bot added the triage label Dec 5, 2023
@liamdebeasi liamdebeasi self-assigned this Dec 5, 2023
@liamdebeasi
Copy link
Contributor

Thanks for the report. We created https://ionicframework.com/docs/api/select#typeahead-component as a way of showing how to implement a mobile-optimized typeahead component. The requested UI pattern works well on desktop. However, showing the dropdown below the input tends to not work well on mobile because the keyboard covers the dropdown when it opens:
image

While you can show the dropdown above the input instead, you are still constrained by screen space making this UI pattern difficult to use on mobile devices.

As a result, we do not have plans to implement this feature in Ionic.

@liamdebeasi liamdebeasi closed this as not planned Won't fix, can't repro, duplicate, stale Dec 5, 2023
@liamdebeasi liamdebeasi removed their assignment Dec 5, 2023
Copy link

ionitron-bot bot commented Jan 4, 2024

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Jan 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants