tommueller / ng-mat-search-bar

An Angular 2+ component for an expandable search-icon.
MIT License
37 stars 9 forks source link

onClose event is not working #17

Closed asku3000 closed 4 years ago

asku3000 commented 5 years ago

When i am on normal screen of my chrome it doesn;t fire up the onClose event when i close the bar. But when i press F12 and do the same then it is firing up that event

afterPressingCross onF12
tommueller commented 5 years ago

I need more information on this. onClose-event is only triggered when you actually click the close-button. If you close by clicking somewhere else on the page onBlur-event is fired instead. I cannot reproduce the issue so far, so maybe it is a confusion on that behalf? Cheers

ray-man commented 5 years ago

onClose event not firing for me too, even at clicking cross button.

tommueller commented 5 years ago

As I said, please provide a repro, otherwise I cannot help with this. Works fine for me.

ray-man commented 5 years ago

This seem like an error cause by css or element misplacement, temporary workaround for me is handle onClose and onBlur both events with same function.

quedicesebas commented 4 years ago

Had to set onClose and onBlur as @ray-man suggested, but is not an ideal solution.

tommueller commented 4 years ago

I still cannot reproduce this. Is this maybe specific to some OS or browser?

tommueller commented 4 years ago

Closing because of missing repro.