瀏覽代碼

updates value when calling setUnit (#28299)

ycw 1 年之前
父節點
當前提交
153cc13f76
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      editor/js/libs/ui.js

+ 2 - 0
editor/js/libs/ui.js

@@ -782,6 +782,8 @@ class UINumber extends UIElement {
 
 		this.unit = unit;
 
+		this.setValue( this.value );
+
 		return this;
 
 	}