浏览代码

Fix initial value binding for color input

panr 5 年之前
父节点
当前提交
dd4974b193
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/ckeditor5-table/src/tablecellproperties/ui/tablecellpropertiesview.js

+ 1 - 1
packages/ckeditor5-table/src/tablecellproperties/ui/tablecellpropertiesview.js

@@ -495,6 +495,7 @@ export default class TableCellPropertiesView extends View {
 
 			inputView.bind( 'isReadOnly' ).to( labeledView, 'isEnabled', value => !value );
 			inputView.bind( 'errorText' ).to( labeledView );
+			inputView.bind( 'value' ).to( this, 'borderColor' );
 
 			inputView.on( 'input', () => {
 				// UX: Make the error text disappear and disable the error indicator as the user
@@ -510,7 +511,6 @@ export default class TableCellPropertiesView extends View {
 			class: 'ck-table-form__border-color',
 		} );
 
-		borderColorInput.bind( 'value' ).to( this, 'borderColor' );
 		borderColorInput.bind( 'isEnabled' ).to( this, 'borderStyle', value => {
 			return value !== 'none';
 		} );