Akryum / Akryum/floating-vue

AutoHide option causes reopening of DropDown if the trigger is clicked

未关闭
#1,045 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
TypeScript
星标
3.5k
派生
341
平均合并
14 分钟
30 天内合并 PR
8

描述

If `:auto-hide` is set to true and the trigger is set to "click", the DropDown is reopened if i click on the trigger to close the popper.

This is caused by the mouse-up event. So if the dropdown is open and i now click the trigger button to close it, the mouse-down event closes the dropdown and the mouse-up event reopens it.

An option to ignore the mouse-up event completely would be nice, but idk maybe there is a better way.

As a workaround i disabled the auto-hide option and used a click-outside directive to close the popper when clicked anywhere on the page.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。