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

Suddenly removing inputed text to typeahead. Only for specified config NgbdTypeaheadConfig #2185

Closed
robzii17 opened this issue Feb 22, 2018 · 2 comments

Comments

@robzii17
Copy link

robzii17 commented Feb 22, 2018

Bug description:

For specific NgbdTypeaheadConfig when you try type any word from suggestion this word is auto remove before end typing this.

This is specific config:

config.showHint = true;
config.focusFirst = false;

(if you remove config.focusFirst = false; line this work properly).

Link to minimally-working plunker that reproduces the issue:

I added only one line "config.focusFirst = false;" in src/typeahead-config.ts
to demo "Global configuration of typeaheads"
Reproduces plunker:
https://plnkr.co/edit/EkTG0qW3OjBtQFGnYsq9?p=preview

Oryginal demo:
https://ng-bootstrap.github.io/app/components/typeahead/demos/config/plnkr.html

Scenario
Open reproduces plunker and try type for example: Alabama.
(Word must be from suggestion states[] from src/typeahead-config.ts )
During type this word this will be remove.

Version of Angular, ng-bootstrap, and Bootstrap:

Angular:
5.0.2

ng-bootstrap:
1.0.0

Bootstrap:
4.0.0

@robzii17 robzii17 changed the title Removing suddenly input texr to typeahead for specify NgbdTypeaheadConfig Removing suddenly inputed text to typeahead for specify NgbdTypeaheadConfig Feb 22, 2018
@robzii17 robzii17 changed the title Removing suddenly inputed text to typeahead for specify NgbdTypeaheadConfig Suddenly removing inputed text to typeahead. Only for specify NgbdTypeaheadConfig Feb 23, 2018
@robzii17 robzii17 changed the title Suddenly removing inputed text to typeahead. Only for specify NgbdTypeaheadConfig Suddenly removing inputed text to typeahead. Only for specified config NgbdTypeaheadConfig Feb 23, 2018
@pkozlowski-opensource pkozlowski-opensource added this to the 1.0.1 milestone Mar 1, 2018
@pkozlowski-opensource
Copy link
Member

This is a valid bug, thnx for reporting. Just sent #2198 to address this issue, should be part of a next release.

@robzii17
Copy link
Author

robzii17 commented Mar 21, 2018

Hello,
@pkozlowski-opensource
For version 1.01 and 1.02 this bug is valid.
For Mentioned typeahead config hint is doesen't display. :(

Reproduce plunker for 1.02:
https://plnkr.co/edit/pCuk31A9RxaR1akq8RCl?p=preview

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants