Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/devextreme/js/__internal/ui/lookup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ class Lookup extends DropDownList<LookupProperties> {
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'),
Expand Down Expand Up @@ -233,7 +234,6 @@ class Lookup extends DropDownList<LookupProperties> {
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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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', {
Expand Down
Loading