igniteui-angular icon indicating copy to clipboard operation
igniteui-angular copied to clipboard

The Value of the igxTextHighlight directive shows up twice when calling highlight()

Open tachojelev opened this issue 8 years ago • 1 comments

Description

The Value of the igxTextHighlight directive shows up twice when calling highlight()

  • igniteui-angular version: 6.0.x, 6.1.x
  • browser: all

NOTES:

  • The most-top element in our application's template gets hidden when the issue gets reproduced.

Steps to reproduce

  1. Download and run the sample applicaiton.
  2. Type "lorem" in the input.

Result

The Value of the igxTextHighlight directive shows up twice

Expected result

The Value of the igxTextHighlight directive shows up once (with the highlights)

Attachments

highlightissue highlightSample.zip

tachojelev avatar Aug 09 '18 09:08 tachojelev

This isn't a bug, the sample is not set up properly. The div to which we apply the IgxTextHighlight directive needs to be the only child on it's level. so you need to wrap it in another div. See the modified sample for reference.

highlightSample.zip

DDavidkov avatar Aug 09 '18 12:08 DDavidkov