element icon indicating copy to clipboard operation
element copied to clipboard

[Feature Request] [tooltip] Make hiding debounce optional

Open TiborPL opened this issue 4 years ago • 1 comments

Existing Component

Yes

Component Name

Tooltip

Description

It's a bit confusing that there's hide-after parameter that by default is 0 (so it should be instant hiding), but there is a debounce of 200 ms hardcoded into the component. When elements are close to each other and have tooltip, it's very annoying how they disappear, because of the debounceClose.

I propose to make the debounceClose optional as a parameter, with default value 200 ms (as it is hardcoded now.) and if set to 0, then switch off debouncing completey.

TiborPL avatar Jul 16 '21 22:07 TiborPL

Still seem to be seeing this in v2.15.13: https://github.com/ElemeFE/element/blob/v2.15.13/packages/tooltip/src/main.js#L75

dcecile avatar Jan 10 '24 17:01 dcecile