diff --git a/packages/devextreme/js/__internal/ui/lookup.ts b/packages/devextreme/js/__internal/ui/lookup.ts index 43c41f433654..59480ceab46c 100644 --- a/packages/devextreme/js/__internal/ui/lookup.ts +++ b/packages/devextreme/js/__internal/ui/lookup.ts @@ -150,6 +150,7 @@ class Lookup extends DropDownList { showDropDownButton: false, focusStateEnabled: false, dropDownOptions: { + _ignoreFunctionValueDeprecation: true, showTitle: true, // @ts-expect-error The width cannot be a static value due to the mechanism of size updates width: () => getSize('width'), @@ -233,7 +234,6 @@ class Lookup extends DropDownList { dropDownCentered: true, _scrollToSelectedItemEnabled: true, dropDownOptions: { - _ignoreFunctionValueDeprecation: true, shading: false, showTitle: false, // The height cannot be a static value due to the mechanism of size updates diff --git a/packages/devextreme/testing/tests/DevExpress.ui.widgets.editors/lookup.tests.js b/packages/devextreme/testing/tests/DevExpress.ui.widgets.editors/lookup.tests.js index 17f3196a9db2..68edb2bdae39 100644 --- a/packages/devextreme/testing/tests/DevExpress.ui.widgets.editors/lookup.tests.js +++ b/packages/devextreme/testing/tests/DevExpress.ui.widgets.editors/lookup.tests.js @@ -2555,6 +2555,23 @@ QUnit.module('popup options', { } }); }); + + QUnit.test('should not log W0017 deprecation warning on popup open for function-valued width/height (T1330990)', function(assert) { + const logStub = sinon.stub(errors, 'log'); + + try { + $('#lookup').dxLookup({ + items: [1, 2, 3], + opened: true, + }); + + const warningCalls = logStub.args.filter(args => args[0] === 'W0017'); + + assert.strictEqual(warningCalls.length, 0, 'no W0017 warnings should be logged when opening the popup'); + } finally { + logStub.restore(); + } + }); }); QUnit.module('list options', {