Merge pull request #1089 from ONLYOFFICE/fix/bugfix

[DE] Fix Bug 51925
This commit is contained in:
Julia Radzhabova 2021-08-17 22:18:53 +03:00 committed by GitHub
commit 1acb6447a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -747,7 +747,7 @@ define([
rec = (this._state.listValue!==undefined) ? this.list.store.findWhere({value: this._state.listValue}) : this.list.store.at(this._state.listIndex); rec = (this._state.listValue!==undefined) ? this.list.store.findWhere({value: this._state.listValue}) : this.list.store.at(this._state.listIndex);
} }
if (rec) { if (rec) {
this.list.selectRecord(rec); this.list.selectRecord(rec, this.txtNewValue._input.is(':focus'));
this.list.scrollToRecord(rec); this.list.scrollToRecord(rec);
} else if (!this.txtNewValue._input.is(':focus')) { } else if (!this.txtNewValue._input.is(':focus')) {
this.txtNewValue.setValue(''); this.txtNewValue.setValue('');