Skip to content

Commit

Permalink
Fixed #1318 - Tooltips closed on window resize after system keyboard …
Browse files Browse the repository at this point in the history
…appears on mobile devices
  • Loading branch information
tugcekucukoglu committed Jun 23, 2021
1 parent eedaf01 commit 44a7edd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/tooltip/Tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ function show(el) {
DomHandler.fadeIn(tooltipElement, 250);

window.addEventListener('resize', function onWindowResize() {
hide(el);
if (!DomHandler.isAndroid()) {
hide(el);
}
this.removeEventListener('resize', onWindowResize);
});

Expand Down

0 comments on commit 44a7edd

Please sign in to comment.