Unplanned
Last Updated: 07 Nov 2024 06:34 by ADMIN
Jeff
Created on: 06 Nov 2024 14:22
Category: Kendo UI® for Vue
Type: Feature Request
0
Add HTMLElement autofocus support for Input, Textbox and other HTMLElement based elements.

Add HTMLElement autofocus property support for input components like Input, Textbox etc...  See https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/autofocus

Currently, unable to apply autofocus as an attribute to Input (separately or as part of a Form).

 
1 comment
ADMIN
Vessy
Posted on: 07 Nov 2024 06:34

Hi,

Thanks a lot for the submitted feature request, Jeff!

For everyone else interested in this improvement, for the time being  the autofocus to all targeted inputs can be set dynamically  to the page like follows:

onMounted(() => {
  document.querySelectorAll('.k-input input').forEach(input => {
    input.setAttribute('autofocus', 'true')
  })
})

Regards,
Vessy
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.