fix: primevue #5740, InputOtp: Able to paste otp in readonly and disabled modes
parent
86a7d4e2a3
commit
358badd2eb
|
@ -165,6 +165,9 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onPaste(event) {
|
onPaste(event) {
|
||||||
|
if(this.readonly || this.disabled) {
|
||||||
|
return
|
||||||
|
}
|
||||||
let paste = event.clipboardData.getData('text');
|
let paste = event.clipboardData.getData('text');
|
||||||
|
|
||||||
if (paste.length) {
|
if (paste.length) {
|
||||||
|
|
Loading…
Reference in New Issue