Procházet zdrojové kódy

updates value when calling setUnit (#28299)

ycw před 1 rokem
rodič
revize
153cc13f76
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  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;
 
 	}