Merge remote-tracking branch 'origin/v8/bugfix/8.9rc-reactive-fallback-value-for-umb-button-type' into v8/8.9
This commit is contained in:
@@ -171,7 +171,7 @@ Use this directive to render an umbraco button. The directive can be used to gen
|
||||
vm.innerState = changes.state.currentValue;
|
||||
}
|
||||
if (changes.state.currentValue === 'success' || changes.state.currentValue === 'error') {
|
||||
// set the state back to 'init' after a success or error
|
||||
// set the state back to 'init' after a success or error
|
||||
$timeout(function () {
|
||||
vm.innerState = 'init';
|
||||
}, 2000);
|
||||
@@ -196,6 +196,13 @@ Use this directive to render an umbraco button. The directive can be used to gen
|
||||
setButtonLabel();
|
||||
}
|
||||
|
||||
// watch for type changes
|
||||
if(changes.type) {
|
||||
if (!vm.type) {
|
||||
vm.type = "button";// set the default
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function clickButton(event) {
|
||||
|
||||
Reference in New Issue
Block a user