diff --git a/src/components/VectorInput/index.ts b/src/components/VectorInput/index.ts index c136027d..5d478d15 100644 --- a/src/components/VectorInput/index.ts +++ b/src/components/VectorInput/index.ts @@ -73,6 +73,10 @@ class VectorInput extends Element implements IBindable, IFocusable, IPlaceholder for (let i = 0; i < this._inputs.length; i++) { this._inputs[i].class.add(pcuiClass.FOCUS); } + + if (this.binding) { + this.binding.historyCombine = true; + } } }); input.on('slider:mouseup', () => { @@ -81,6 +85,11 @@ class VectorInput extends Element implements IBindable, IFocusable, IPlaceholder for (let i = 0; i < this._inputs.length; i++) { this._inputs[i].class.remove(pcuiClass.FOCUS); } + input.blur(); + + if (this.binding) { + this.binding.historyCombine = false; + } }); input.on('change', () => { this._onInputChange(input);