2.0.8
any
2.5.10
https://jsfiddle.net/mmx38qxw/107/
Create el-menu with el-autocomplete in it then press space in el-autocomplete element
Space should work
Space doesn't work
Update:
When space is pressed it is registered as click if I monitor events.
I also found this code in few files (menu.js, aria-menuitem.js,element-ui.common.js)
case keys.space:
case.keys.enter:
prevDef = true;
event.currentTarget.click();
break;
But changing it or commenting space part doesn't do anything.
Hello, we having similar problem because of space press event handler. Any updates?
https://jsfiddle.net/kulnaura/7oxpzg54/5/
I added wrapper for el-input and used @keydown.stop on it:
...
<el-menu-item index="1">
<div @keydown.stop>
<el-input
v-model="keyword"
type="text"
placeholder="placeholder"
clearable
autofocus>
</el-input>
</div>
</el-menu-item>
...
This trick helped me.
@alexander-sharecreators , this helped me as well. This was an infuriating bug.
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.
Most helpful comment
https://jsfiddle.net/kulnaura/7oxpzg54/5/
I added wrapper for el-input and used @keydown.stop on it:
This trick helped me.