ElemeFE / element

A Vue.js 2.0 UI Toolkit for Web
https://element.eleme.io/
MIT License
54.12k stars 14.64k forks source link

[Bug Report] el-input's preffix is displayed at wrong position when used without el-form tag. #19321

Open Masa-Shin opened 4 years ago

Masa-Shin commented 4 years ago

Element UI version

2.13.0

OS/Browsers version

macOS Catalina / Google Chrome 81

Vue version

2.6.11

Reproduction Link

https://codepen.io/POPOPON/pen/rNOYWNB?editors=1010

Steps to reproduce

Use el-input component with prefix slot without el-form and el-form-item tags surrounded it.

What is Expected?

Prefix and suffix should be centered even if it is not in el-form tags

What is actually happening?

They are displayed at the top of the input.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.