add dropdown component

This commit is contained in:
tsanie committed 2023-03-31 17:35:36 +08:00
1 parent b9447997fe
commit 41b1bbd7d6
20 files changed
+575 -74

No files matched your search

+1 -3
View File
@@ -49,9 +49,7 @@ function setTooltip(container, content) {
}
function resolveTooltip(container) {
if (container == null) {
container = document.body;
}
container ??= document.body;
const tips = container.querySelectorAll('[title]');
for (let tip of tips) {
const title = tip.getAttribute('title');