Browse Source

updates value when calling setUnit (#28299)

ycw 1 year ago
parent
commit
153cc13f76
1 changed files with 2 additions and 0 deletions
  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.unit = unit;
 
 
+		this.setValue( this.value );
+
 		return this;
 		return this;
 
 
 	}
 	}