[Files app] Hide tooltip when the focus is restored to the delete icon
When clicking the 'Delete' icon, a confirmation dialog is shown. Once closed, the dialog restores the focus to the previously active element. In the case of the 'Delete' button, it results in the tooltip showing again after a certain timeout. This change hides the 'Delete' button tooltip after the dialog is closed. The `hideTooltip` function is extended to cancel any potential timeout that has been initiated to show the tooltip. Bug: 1082019 test: browser_tests --gtest_filter=*filesTooltipHidesOnDeleteDialogClosed Change-Id: I4956174df6ad46c2a356cdb8b3985714ed3ff2de Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2483732 Auto-Submit: Jeremie Boulic <jboulic@chromium.org> Reviewed-by:Luciano Pacheco <lucmult@chromium.org> Reviewed-by:
Alex Danilo <adanilo@chromium.org> Commit-Queue: Jeremie Boulic <jboulic@chromium.org> Cr-Commit-Position: refs/heads/master@{#833604}
Showing
Please register or sign in to comment