Set-point-value and show-button=false not working
I've been working in a slightly older version of Mango (2.7.12 maybe?) and just upgraded to latest. I cannot get <ma-set-point-value> to work when using show-button="false". The value will not change. It works fine when show-button=true or exclude show button, but I need to to work without it..
Also, it would be good that to have it set on change when the element loses focus. I only had it work previously when enter was specifically pressed. I added ng-blur to the directive, fixing it..
I tried doing the value change using a fresh install of the latest mango without show button and doesn't seem to work..
Seems it has something to do with the change to 'convertRendered() in setPointValue.js
Jared Wiltshire last edited by
@Dan-M unless I'm mistaken,
ma-set-point-valueonly ever worked with
show-button="false"when it was a binary or multi-state point. You could try this for setting when pressing enter -
<md-input-container> <label>Set value</label> <input type="number" step="any" ng-model="inputValue" ma-copy-blurred="myPoint.value" ng-disabled="!myPoint.pointLocator.settable" ng-keypress="$event.which === 13 && myPoint.setValue(inputValue)"> </md-input-container>
Jared Wiltshire last edited by Jared Wiltshire
Im using v3.4. It was working in v3.2 though.