🐛(component): [tooltip]trigger contextMenu 时阻止默认行为
This commit is contained in:
parent
18b35e0449
commit
c6671864b9
@ -471,7 +471,6 @@ const handleScroll = useThrottleFn(() => {
|
||||
}, 10);
|
||||
|
||||
const handleClick = (e: MouseEvent) => {
|
||||
e.stopPropagation();
|
||||
if (props.disabled || (openState.value && !props.clickToClose)) {
|
||||
return;
|
||||
}
|
||||
|
@ -144,8 +144,9 @@ const handlerTriggerClick = function () {
|
||||
}
|
||||
};
|
||||
|
||||
const handleTriggerContextMenu = function () {
|
||||
const handleTriggerContextMenu = function (e: MouseEvent) {
|
||||
if (!triggerMethods.value.includes("contextMenu")) return;
|
||||
e.preventDefault();
|
||||
if (innerVisible.value) {
|
||||
doHidden();
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user