telerik / kendo-ui-core

An HTML5, jQuery-based widget library for building modern web apps.
http://www.telerik.com/kendo-ui
Other
2.54k stars 1.9k forks source link

NumericTextBox with MVVM does not support "selectOnFocus" #6330

Closed kendo-bot closed 3 years ago

kendo-bot commented 3 years ago

Bug report

When the Kendo UI NumericTextBox widget is implemented via the MVVM pattern, the property "selectOnFocus" can't be set with the 'data' attribute.

Reproduction of the problem

1) Create a NumericTextBox widget by using MVVM pattern;

2) Set data-selectOnFocus="true" to the input element for the NumericTextBox;

3) Enter a value in the NumericTextBox and focus it;

4) The entered value is not selected;

A Dojo sample for reproduction: https://dojo.telerik.com/aTidozIC

Expected/desired behavior

When the Kendo UI NmericTextBox with MVVM is configured with option data-selectOnFocus="true", the entered value should be selected, once the input element is focused.

Environment

dmanova commented 3 years ago

Just a note - the property is "data-select-on-focus".