mirror of
https://github.com/element-plus/element-plus.git
synced 2025-01-30 11:16:12 +08:00
fix(components): [message-box] textarea can not use multiline text (#6774)
fix: #6765
This commit is contained in:
parent
35ad87ef0b
commit
bbcd54ce7f
@ -81,7 +81,7 @@
|
||||
:type="inputType"
|
||||
:placeholder="inputPlaceholder"
|
||||
:class="{ invalid: validateError }"
|
||||
@keydown.prevent.enter="handleInputEnter"
|
||||
@keydown.enter="handleInputEnter"
|
||||
/>
|
||||
<div
|
||||
class="el-message-box__errormsg"
|
||||
@ -363,8 +363,9 @@ export default defineComponent({
|
||||
|
||||
const overlayEvent = useSameTarget(handleWrapperClick)
|
||||
|
||||
const handleInputEnter = () => {
|
||||
const handleInputEnter = (e: KeyboardEvent) => {
|
||||
if (state.inputType !== 'textarea') {
|
||||
e.preventDefault()
|
||||
return handleAction('confirm')
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user