Skip to content

Commit

Permalink
fix: textarea not being detected as a text input closes #2333
Browse files Browse the repository at this point in the history
  • Loading branch information
logaretm committed Sep 15, 2019
1 parent 135a44a commit 009ef85
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/utils/vnode.ts
Expand Up @@ -10,7 +10,11 @@ export const isTextInput = (vnode: VNode): boolean => {
return true;
}

return includes(['text', 'password', 'search', 'email', 'tel', 'url', 'textarea', 'number'], attrs && attrs.type);
if (vnode.tag === 'textarea') {
return true;
}

return includes(['text', 'password', 'search', 'email', 'tel', 'url', 'number'], attrs && attrs.type);
};

// export const isCheckboxOrRadioInput = (vnode: VNode): boolean => {
Expand Down

0 comments on commit 009ef85

Please sign in to comment.