Skip to content

Commit b20fe42

Browse files
committed
fix(tooltip): update default hide-triggers format and enhance show method documentation
1 parent ad250f4 commit b20fe42

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/components/tooltip/tooltip.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ export default class IgcTooltipComponent extends EventEmitterMixin<
196196
* Expects a comma separate string of different event triggers.
197197
*
198198
* @attr hide-triggers
199-
* @default "pointerleave, click"
199+
* @default pointerleave, click
200200
*/
201201
@property({ attribute: 'hide-triggers' })
202202
public set hideTriggers(value: string) {
@@ -339,7 +339,10 @@ export default class IgcTooltipComponent extends EventEmitterMixin<
339339
return commitStateChange();
340340
}
341341

342-
/** Shows the tooltip if not already showing. */
342+
/**
343+
* Shows the tooltip if not already showing.
344+
* If a target is provided, sets it as a transient anchor.
345+
*/
343346
public show(target?: Element): Promise<boolean> {
344347
if (target) {
345348
this._stopTimeoutAndAnimation();

0 commit comments

Comments
 (0)