File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
packages/devextreme/js/__internal/ui/color_box Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -224,7 +224,7 @@ class ColorBox extends DropDownEditor<ColorBoxProperties> {
224224 const color = new Color ( newValue ) ;
225225
226226 if ( color . colorIsInvalid ) {
227- this . _input ( ) . val ( oldValue ) ;
227+ this . _input ( ) . val ( oldValue === null ? undefined : oldValue ) ;
228228 return ;
229229 }
230230 // @ts -expect-error ts-error
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ const BLACK_COLOR = '#000000';
6767export interface ColorViewProperties extends EditorProperties {
6868 keyStep ?: number ;
6969
70- matchValue ?: string ;
70+ matchValue ?: string | null ;
7171
7272 editAlphaChannel ?: boolean ;
7373
@@ -299,7 +299,6 @@ class ColorView extends Editor<ColorViewProperties> {
299299 return {
300300 ...super . _getDefaultOptions ( ) ,
301301 value : null ,
302- // @ts -expect-error ts-error
303302 matchValue : null ,
304303 onEnterKeyPressed : undefined ,
305304 editAlphaChannel : false ,
You can’t perform that action at this time.
0 commit comments