label to close button
This commit is contained in:
parent
c05f151b1a
commit
19874ef231
|
@ -179,7 +179,6 @@ let transitionDuration = $computed(() =>
|
|||
|
||||
let contentClicking = false;
|
||||
|
||||
// const focusedElement = document.activeElement;
|
||||
function close(ev, opts: { useSendAnimation?: boolean } = {}) {
|
||||
// removeEventListener("popstate", close);
|
||||
// if (props.preferType == "dialog") {
|
||||
|
@ -193,16 +192,10 @@ function close(ev, opts: { useSendAnimation?: boolean } = {}) {
|
|||
if (props.src) props.src.style.pointerEvents = "auto";
|
||||
showing = false;
|
||||
emit("close");
|
||||
// if (!props.noReturnFocus) {
|
||||
// focusedElement.focus();
|
||||
// }
|
||||
}
|
||||
|
||||
function onBgClick() {
|
||||
if (contentClicking) return;
|
||||
// if (!props.noReturnFocus) {
|
||||
// focusedElement.focus();
|
||||
// }
|
||||
emit("click");
|
||||
}
|
||||
|
||||
|
|
|
@ -27,6 +27,7 @@
|
|||
:aria-label="i18n.t('close')"
|
||||
class="_button"
|
||||
@click="$emit('close')"
|
||||
v-tooltip="i18n.ts.close"
|
||||
>
|
||||
<i class="ph-x ph-bold ph-lg"></i>
|
||||
</button>
|
||||
|
|
Loading…
Reference in New Issue