fixed Sidebar: using unstyled mode and Tailwind theme, the :modal="false" doesn't work. Can't disable the modal layer. #4288

pull/4299/head
ATAKAN TEPE 2023-08-18 15:14:41 +03:00
parent 7b09579d2c
commit 3fe058e2ad
1 changed files with 3 additions and 3 deletions

View File

@ -551,9 +551,9 @@ export default {
content: { content: {
class: ['p-5 pt-0 h-full w-full', 'grow overflow-y-auto'] class: ['p-5 pt-0 h-full w-full', 'grow overflow-y-auto']
}, },
mask: { mask: ({ props }) => ({
class: ['flex pointer-events-auto', 'bg-black bg-opacity-40 transition duration-200 z-20 transition-colors'] class: ['flex pointer-events-auto', 'transition duration-200 z-20 transition-colors', { 'bg-black/40': props.modal }]
}, }),
transition: ({ props }) => { transition: ({ props }) => {
return props.position === 'top' return props.position === 'top'
? { ? {