mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 18:23:54 +02:00
Merge pull request #7008 from ericrius1/editPropsDecimals
Fixed bug where lack of 0 as prefix for numbers would throw an error
This commit is contained in:
commit
43844dd0be
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@
|
|||
function createEmitNumberPropertyUpdateFunction(propertyName) {
|
||||
return function() {
|
||||
EventBridge.emitWebEvent(
|
||||
'{ "type":"update", "properties":{"' + propertyName + '":' + this.value + '}}'
|
||||
'{ "type":"update", "properties":{"' + propertyName + '":' + parseFloat(this.value).toFixed(2) + '}}'
|
||||
);
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue