Skip to content

Commit

Permalink
list.Base: selectOnFocus config #6122
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiu committed Nov 19, 2024
1 parent 31cb171 commit 5f3332e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/list/Base.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,12 @@ class Base extends Component {
*/
selectionModel_: null,
/**
* Set this to true in case a select event should only update _vdom (e.g. when used inside a form.field.Select
* Set this to true in case a keyboard navigation should immediately select the focussed item
* @member {Boolean} selectOnFocus=false
*/
selectOnFocus: false,
/**
* Set this to true in case a select event should only update _vdom (e.g. when used inside a form.field.ComboBox
* @member {Boolean} silentSelect=false
*/
silentSelect: false,
Expand Down Expand Up @@ -298,6 +303,7 @@ class Base extends Component {
if (!me.hasNavigator) {
me.navigator = {
appName : me.appName,
autoClick : me.selectOnFocus,
id : me.id,
keepFocusIndex: me.keepFocusIndex,
selector : `.${me.itemCls}:not(.neo-disabled,.neo-list-header)`,
Expand Down

0 comments on commit 5f3332e

Please sign in to comment.