Skip to content

Lists are all bold if item has space #205

Description

@paul-test

Bug description

My data is 12 hours time, e.g.
12:00 AM
12:15 AM
12:30 AM
......
If I select 12:15 PM and then open the dropdown dialog, all AM of each item are all bold.

Expected result

The font should be normal

Actual result

12:00 AM
12:15 AM
12:30 AM

Steps to reproduce

  1. Set the datasource as string[] and push strings like '12:00 AM', '12:15 AM', '12:30 AM'.
  2. Select 12:15 AM
  3. Click the input and then the list pops up. All 'AM' are bold.

Context

It should be a problem of HighlightPipe.

Your Environment

  • Version used:
  • Browser Name and version:
  • Operating System and version:
  • Link to your project:

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions