Filtering conditions drop down does not behave consistently when the button that opens it is clicked multiple times
Description
When the button that opens the drop down with filtering conditions is clicked multiple times it does not behave consistently. The first two times when it is clicked the drop down with the conditions closes and opens again, the third time when it is clicked the drop down just closes.
- igniteui-angular version: 7.2.x
- browser: N/A
Steps to reproduce
- Open Grid Column Groups sample.
- Click "Filter" for any of the columns.
- Click the button that opens the drop down with filtering conditions.
- Click it one more time.
- And one more time.
Result
After steps 3 and 4 the conditions drop down is closed and opened again. After step 5 it is not opened. If you continue clicking on the button the same repetitive misbehavior can be observed -twice the drop down is opened and once it is not.

Expected result
Filtering conditions drop down to be opened after every click of the button
On IE11, it still occur on [email protected].

I found that if event.target is svg element, elem.contains() method returns wrong value on IE11.
I'm attaching a small sample. svg-click-sample.zip
- Run the sample on IE11.
- Open console.
- Click on the svg.
If you click outside the svg stroke, contains() returns true. BUT, if you click over the svg stroke, it returns false, which causes this issue.

Therefore, the following logic doesn't work as expected on IE11. That's why filtering conditions drop down doesn't toggle correctly.
https://github.com/IgniteUI/igniteui-angular/blob/711244b/projects/igniteui-angular/src/lib/services/overlay/overlay.ts#L627-L628
// On IE11, contains() returns false when you click over the svg stroke.
const clickOnPositionTarget = positionTarget && positionTarget.contains
? (positionTarget as any).contains(ev.target)
Here is a quick fix.
:host::ng-deep {
.igx-grid__filtering-row .filtering-icons.igx-icon {
pointer-events: none;
}
}
If you style like the above, event.target won't be svg element, so you can avoid this issue.