diff --git a/js/ui/date_box/ui.date_box.mask.js b/js/ui/date_box/ui.date_box.mask.js index 8c466ccd5e53..55c753a3fdf4 100644 --- a/js/ui/date_box/ui.date_box.mask.js +++ b/js/ui/date_box/ui.date_box.mask.js @@ -316,7 +316,7 @@ const DateBoxMask = DateBoxBase.inherit({ }, _selectNextPart(step = 0) { - if(!this.option("text") || this._disposed) { + if(!this.option("text")) { return; } diff --git a/testing/tests/DevExpress.ui.widgets.editors/datebox.mask.tests.js b/testing/tests/DevExpress.ui.widgets.editors/datebox.mask.tests.js index 87cdff96d778..9874fdf3eeb8 100644 --- a/testing/tests/DevExpress.ui.widgets.editors/datebox.mask.tests.js +++ b/testing/tests/DevExpress.ui.widgets.editors/datebox.mask.tests.js @@ -640,18 +640,6 @@ if(devices.real().deviceType === "desktop") { this.keyboard.paste("November 10 2018"); assert.strictEqual(this.$input.val(), "November 10 2018", "pasting correct value is allowed"); }); - - test("exception should not be thrown when the widget disposed on valueChange", (assert) => { - this.instance.option({ - value: new Date(2019, 11, 31), - onValueChanged: function(e) { - e.component.dispose(); - } - }); - - this.keyboard.type("1").blur(); - assert.strictEqual(this.$input.val(), "January 31 2019", "value is correct"); - }); });