ソースを参照

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;
 
 	}