Explorar o código

updates value when calling setUnit (#28299)

ycw hai 1 ano
pai
achega
153cc13f76
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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;
 
 	}