Skip to content

Commit e135a6f

Browse files
authored
Merge pull request MeCKodo#48 from luyilin/pr-textarea
fix:修复父级DOM里含有textarea,无法聚焦的bug
2 parents e7600bc + 8e9ea52 commit e135a6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vue-tap.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@
130130
var tagName = value.event.target.tagName.toLocaleLowerCase();
131131
!isPc ? value.tapObj = el.tapObj : null;
132132

133-
if(tagName === 'input') {
133+
if(tagName === 'input' || tagName === 'textarea') {
134134
return value.event.target.focus();
135135
}
136136
if (!value && el.href && !binding.modifiers.prevent) {

0 commit comments

Comments
 (0)