From 8f2e46bf0c01dcec03f64fccf9a47ac27e13528a Mon Sep 17 00:00:00 2001 From: naved Date: Mon, 19 Jun 2023 14:12:45 +0530 Subject: [PATCH] Fix undefined hideDelay --- components/lib/tooltip/Tooltip.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/lib/tooltip/Tooltip.js b/components/lib/tooltip/Tooltip.js index d67564c8f..99f7fe876 100755 --- a/components/lib/tooltip/Tooltip.js +++ b/components/lib/tooltip/Tooltip.js @@ -84,6 +84,9 @@ function onClick(event) { } function onKeydown(event) { + const el = event.currentTarget; + const hideDelay = el.$_ptooltipHideDelay; + event.code === 'Escape' && hide(event.currentTarget, hideDelay); }