Skip to content

Commit

Permalink
docs: fix popover JSDoc to use correct parameter name (#7938) (#7940)
Browse files Browse the repository at this point in the history
Co-authored-by: Serhii Kulykov <iamkulykov@gmail.com>
  • Loading branch information
vaadin-bot and web-padawan authored Oct 4, 2024
1 parent 7870ba8 commit a546009
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/popover/src/vaadin-popover.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions packages/popover/src/vaadin-popover.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit a546009

Please sign in to comment.