Skip to content

Commit

Permalink
refactor(drawer): mask click
Browse files Browse the repository at this point in the history
07akioni committed Dec 20, 2023
1 parent b166591 commit ad3949a
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions src/drawer/src/Drawer.tsx
Original file line number Diff line number Diff line change
@@ -224,10 +224,8 @@ export default defineComponent({
if (onMaskClick) onMaskClick(e)
}

function handleOutsideClick (): void {
if (props.maskClosable) {
doUpdateShow(false)
}
function handleOutsideClick (e: MouseEvent): void {
handleMaskClick(e)
}

const isComposingRef = useIsComposing()
2 changes: 1 addition & 1 deletion src/locales/__snapshots__/index.spec.tsx.snap
Original file line number Diff line number Diff line change
@@ -515,7 +515,7 @@ exports[`locale works 4`] = `
<div class="n-input n-input--resizable n-input--stateful" style="--n-bezier: cubic-bezier(.4, 0, .2, 1); --n-count-text-color: rgb(118, 124, 130); --n-count-text-color-disabled: rgba(194, 194, 194, 1); --n-color: rgba(255, 255, 255, 1); --n-font-size: 14px; --n-border-radius: 3px; --n-height: 34px; --n-padding-left: 12px; --n-padding-right: 12px; --n-text-color: rgb(51, 54, 57); --n-caret-color: #18a058; --n-text-decoration-color: rgb(51, 54, 57); --n-border: 1px solid rgb(224, 224, 230); --n-border-disabled: 1px solid rgb(224, 224, 230); --n-border-hover: 1px solid #36ad6a; --n-border-focus: 1px solid #36ad6a; --n-placeholder-color: rgba(194, 194, 194, 1); --n-placeholder-color-disabled: rgba(209, 209, 209, 1); --n-icon-size: 16px; --n-line-height-textarea: 1.6; --n-color-disabled: rgb(250, 250, 252); --n-color-focus: rgba(255, 255, 255, 1); --n-text-color-disabled: rgba(194, 194, 194, 1); --n-box-shadow-focus: 0 0 0 2px rgba(24, 160, 88, 0.2); --n-loading-color: #18a058; --n-caret-color-warning: #f0a020; --n-color-focus-warning: rgba(255, 255, 255, 1); --n-box-shadow-focus-warning: 0 0 0 2px rgba(240, 160, 32, 0.2); --n-border-warning: 1px solid #f0a020; --n-border-focus-warning: 1px solid #fcb040; --n-border-hover-warning: 1px solid #fcb040; --n-loading-color-warning: #f0a020; --n-caret-color-error: #d03050; --n-color-focus-error: rgba(255, 255, 255, 1); --n-box-shadow-focus-error: 0 0 0 2px rgba(208, 48, 80, 0.2); --n-border-error: 1px solid #d03050; --n-border-focus-error: 1px solid #de576d; --n-border-hover-error: 1px solid #de576d; --n-loading-color-error: #d03050; --n-clear-color: rgba(194, 194, 194, 1); --n-clear-size: 16px; --n-clear-color-hover: rgba(146, 146, 146, 1); --n-clear-color-pressed: rgba(175, 175, 175, 1); --n-icon-color: rgba(194, 194, 194, 1); --n-icon-color-hover: rgba(146, 146, 146, 1); --n-icon-color-pressed: rgba(175, 175, 175, 1); --n-icon-color-disabled: rgba(209, 209, 209, 1); --n-suffix-text-color: rgb(51, 54, 57);" tabindex="0">
<div class="n-input-wrapper">
<!---->
<div class="n-input__input"><input type="text" class="n-input__input-el" tabindex="-1" placeholder="Select Year" size="20">
<div class="n-input__input"><input type="text" class="n-input__input-el" tabindex="-1" placeholder="Выберите год" size="20">
<!---->
<!---->
</div>

0 comments on commit ad3949a

Please sign in to comment.