question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Selected Value not displayed after Filtering on Mobile

See original GitHub issue

Describe the bug When filtering on mobile chrome and then selecting a value, the class ng-select-filtered stays on and sets visibility: hidden on the selected value. This is due to (compositionend)="onCompositionEnd(searchInput.value)" not firing when typing. It only fires when you close the keyboard on mobile which you obviously don’t. Reproducbile example Filter List on mobile then select a value. Value is not visible.

To Reproduce Steps to reproduce the behavior (if example is not provided):

  1. Clone Repo and Run ng serve --host 0.0.0.0. Remote Debug your Android device.
  2. first dropdown
  3. type ‘k’
  4. select any value, before closing your keyboard

Expected behavior The selected value should be visible after selection. Screenshots If applicable, add screenshots to help explain your problem. Screenshot 2020-06-07 at 02 16 28

Smartphone (please complete the following information):

  • Device: Samsung S10 Plus, OnePlus X
  • OS: android
  • Browser chrome
  • Version latest

Additional context I could fix this by replacing (compositionend)="onCompositionEnd(searchInput.value)" with (input)="onCompositionEnd(searchInput.value)"in src/ng-select/lib/ng-select.component.html

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:4
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
hadajcommented, Jun 15, 2020

Describe the bug When filtering on mobile chrome and then selecting a value, the class ng-select-filtered stays on and sets visibility: hidden on the selected value. This is due to (compositionend)="onCompositionEnd(searchInput.value)" not firing when typing. It only fires when you close the keyboard on mobile which you obviously don’t. Reproducbile example Filter List on mobile then select a value. Value is not visible.

To Reproduce Steps to reproduce the behavior (if example is not provided):

  1. Clone Repo and Run ng serve --host 0.0.0.0. Remote Debug your Android device.
  2. first dropdown
  3. type ‘k’
  4. select any value, before closing your keyboard

Expected behavior The selected value should be visible after selection. Screenshots If applicable, add screenshots to help explain your problem. Screenshot 2020-06-07 at 02 16 28

Smartphone (please complete the following information):

  • Device: Samsung S10 Plus, OnePlus X
  • OS: android
  • Browser chrome
  • Version latest

Additional context I could fix this by replacing (compositionend)="onCompositionEnd(searchInput.value)" with (input)="onCompositionEnd(searchInput.value)"in src/ng-select/lib/ng-select.component.html

I still have the same issue 😃

0reactions
github-actions[bot]commented, Oct 11, 2020

🎉 This issue has been resolved in version 5.0.8 🎉

The release is available on:

Your semantic-release bot 📦🚀

Read more comments on GitHub >

github_iconTop Results From Across the Web

Jquery Mobile Select not updating to show value after options ...
Jquery Mobile Select not updating to show value after options added ... It has a default option that shows nothing and has no...
Read more >
No value shown in filter dropdown options even though Excel ...
Hi All, I have one excel file having 10 columns filled with data. There is no gap between row data i.e. all rows...
Read more >
Help Needed!!! Selected Value not filtering??
I'm trying to create histogram based on Switch True() but my code is not working. The selection Our Request Date and Supplier Promise...
Read more >
When filtering data, is it possible to put in a cell the value of ...
You could set it up so that enter a value in the cell filters the table and not the other way round. enter...
Read more >
Excel filter not working after certain row - YouTube
00:00 Filter missing rows 00:30 Reason it is missing- your filter set up 01:08 Correct way to set up filter … Show more....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found