Fix create workspace (#5740)

This commit is contained in:
Denis Bykhov 2024-06-06 09:34:21 +05:00 committed by GitHub
parent e248ac4990
commit b0657cff63
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -136,12 +136,16 @@
style:padding={$deviceInfo.docWidth <= 480 ? '.25rem 1.25rem' : '4rem 5rem'}
style:min-height={$deviceInfo.docHeight > 720 ? '42rem' : '0'}
on:keydown={(evt) => {
if (evt.key === 'Enter' && !inAction) {
validate($themeStore.language).then((res) => {
if (res) {
performAction(action)
}
})
if (evt.key === 'Enter') {
evt.preventDefault()
evt.stopPropagation()
if (!inAction) {
validate($themeStore.language).then((res) => {
if (res) {
performAction(action)
}
})
}
}
}}
>