feat(components): [input] support inputmode for textarea#23813
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughAdds inputmode attribute support to the Input component. A Vue component binding enables the inputmode prop to be rendered on both input and textarea elements, with a corresponding test case validating the attribute application. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
commit: |
|
🧪 Playground Preview: https://element-plus.run/?pr=23813 |
btea
left a comment
There was a problem hiding this comment.
While I think adding these configurations to a textarea would be quite rare, it would be better to have better support for it.
|
@snowbitx Thanks for your contribution! ❤️ |

Please make sure these boxes are checked before submitting your PR, thank you!
devbranch.This PR adds
inputmodesupport forElInputwhentype="textarea", aligning its behavior with the default input implementation.Summary by CodeRabbit
inputmodeattribute on input and textarea elements, enabling better mobile keyboard selection for different input types (e.g., numeric, decimal).