Skip to content

Commit 3905f31

Browse files
Datasource cannot be obtained via destructuring due to the KO integrration (#30872)
1 parent 7111501 commit 3905f31

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

packages/devextreme/js/__internal/ui/drop_down_editor/m_drop_down_list.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,8 @@ class DropDownList<
658658
| DataSourceOptions<GroupItem<Item>>
659659
| null
660660
| undefined {
661-
const { dataSource, grouped } = this.option();
661+
const { grouped } = this.option();
662+
const dataSource = this.option('dataSource');
662663

663664
if (dataSource && grouped) {
664665
return getDataSourceOptions(dataSource);

packages/devextreme/js/__internal/ui/list/list.base.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,8 @@ export class ListBase extends CollectionWidget<ListBaseProperties, Item> {
550550
| DataSourceOptions<GroupItem<Item>>
551551
| null
552552
| undefined {
553-
const { dataSource, grouped } = this.option();
553+
const { grouped } = this.option();
554+
const dataSource = this.option('dataSource');
554555

555556
if (dataSource && grouped) {
556557
return getDataSourceOptions<Item>(dataSource);

0 commit comments

Comments
 (0)