Skip to content

Commit

Permalink
docs: fix tooltip JSDoc to use correct parameter name
Browse files Browse the repository at this point in the history
  • Loading branch information
web-padawan committed Oct 4, 2024
1 parent 7dbd5dc commit 91c0ce5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/tooltip/src/vaadin-tooltip-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ export const TooltipMixin = (superClass) =>
* Sets the default focus delay to be used by all tooltip 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 @@ -401,7 +401,7 @@ export const TooltipMixin = (superClass) =>
* Sets the default hover delay to be used by all tooltip 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
2 changes: 1 addition & 1 deletion packages/tooltip/src/vaadin-tooltip.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ declare class Tooltip extends TooltipMixin(ThemePropertyMixin(ControllerMixin(El
* Sets the default hover delay to be used by all tooltip instances,
* except for those that have hover delay configured using property.
*/
static setDefaultHoverDelay(delay: number): void;
static setDefaultHoverDelay(hoverDelay: number): void;
}

declare global {
Expand Down

0 comments on commit 91c0ce5

Please sign in to comment.