We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在 <input> 輸入框上使用時,如果重複點擊,彈出式選單就會被一直關閉、開啟,感覺會有點怪
<input>
如果可以加入 data-autoclose 之類的 key,就可以判斷點擊時的動作
data-autoclose
// 切換目標彈出式選單的可見度。 if (element.dataset.autoclose === "false") { target.classList.add("is-visible") } else { target.classList.toggle("is-visible") }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
在
<input>
輸入框上使用時,如果重複點擊,彈出式選單就會被一直關閉、開啟,感覺會有點怪如果可以加入
data-autoclose
之類的 key,就可以判斷點擊時的動作The text was updated successfully, but these errors were encountered: