igniteui-angular
igniteui-angular copied to clipboard
Reduce the use of MutationObservers in the IgxTextHighlightDirective
Description
The IgxTextHighlightDirective by default uses MutationObservers in order to track changes to the DOM for when content in its parent container is changed. This is necessary for cases such as editing in the grid, where the cell's template changes dynamically and asynchronously. However, when there are a lot of cells these MutationObservers can lead to performance hit, so we should look for a way to use them more conservatively.