Add Input Type to Menu Template

1 Answer 36 Views
Menu
Eli
Top achievements
Rank 1
Veteran
Eli asked on 30 Sep 2024, 06:56 PM | edited on 30 Sep 2024, 06:56 PM

How would I add an input to the template of a menu?  View the following REPL, it does not accept keyboard input, but it DOES accept input if holding down shift and entering capital letters.  I assume the menu is capturing keystrokes somewhere.

https://blazorrepl.telerik.com/QeEtnaFW52QfOcqb30

 

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 01 Oct 2024, 06:48 AM

Hello Eli,

Wrap the <input> in an element that prevents keydown event bubbling:

https://blazorrepl.telerik.com/QIbaOPYq44Ig23hk21

<span onkeydown="event.stopPropagation()"><input type="text" /></span>

Regards,
Dimo
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Menu
Asked by
Eli
Top achievements
Rank 1
Veteran
Answers by
Dimo
Telerik team
Share this question
or