From 27837ad902e9cabe770cb0f42c00f2e7f7ce4a89 Mon Sep 17 00:00:00 2001 From: web-padawan Date: Fri, 4 Oct 2024 11:57:50 +0300 Subject: [PATCH] docs: fix popover JSDoc to use correct parameter name --- packages/popover/src/vaadin-popover.d.ts | 2 +- packages/popover/src/vaadin-popover.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/popover/src/vaadin-popover.d.ts b/packages/popover/src/vaadin-popover.d.ts index cf1ed27269..b82eb3ed20 100644 --- a/packages/popover/src/vaadin-popover.d.ts +++ b/packages/popover/src/vaadin-popover.d.ts @@ -93,7 +93,7 @@ declare class Popover extends PopoverPositionMixin( * Sets the default hover delay to be used by all popover instances, * except for those that have hover delay configured using property. */ - static setDefaultHoverDelay(delay: number): void; + static setDefaultHoverDelay(hoverDelay: number): void; /** * String used to label the overlay to screen reader users. diff --git a/packages/popover/src/vaadin-popover.js b/packages/popover/src/vaadin-popover.js index f1efcf93e8..f517bdb9f5 100644 --- a/packages/popover/src/vaadin-popover.js +++ b/packages/popover/src/vaadin-popover.js @@ -415,7 +415,7 @@ class Popover extends PopoverPositionMixin( * Sets the default focus delay to be used by all popover instances, * except for those that have focus delay configured using property. * - * @param {number} delay + * @param {number} focusDelay */ static setDefaultFocusDelay(focusDelay) { defaultFocusDelay = focusDelay != null && focusDelay >= 0 ? focusDelay : DEFAULT_DELAY; @@ -435,7 +435,7 @@ class Popover extends PopoverPositionMixin( * Sets the default hover delay to be used by all popover instances, * except for those that have hover delay configured using property. * - * @param {number} delay + * @param {number} hoverDelay */ static setDefaultHoverDelay(hoverDelay) { defaultHoverDelay = hoverDelay != null && hoverDelay >= 0 ? hoverDelay : DEFAULT_DELAY;