mirror of
https://github.com/youzan/vant.git
synced 2025-10-22 20:04:09 +00:00
chore: optional chaining (#8283)
This commit is contained in:
@@ -208,8 +208,8 @@ export default createComponent({
|
||||
|
||||
const onFocus = (event: Event) => {
|
||||
// readonly not work in lagacy mobile safari
|
||||
if (props.disableInput && inputRef.value) {
|
||||
inputRef.value.blur();
|
||||
if (props.disableInput) {
|
||||
inputRef.value?.blur();
|
||||
} else {
|
||||
emit('focus', event);
|
||||
}
|
||||
|
Reference in New Issue
Block a user