allow for programmatic input to text and textarea-secret fields

This commit is contained in:
Jake McDermott
2017-11-14 21:36:40 -05:00
parent 5baa371739
commit 71fea2e360
6 changed files with 25 additions and 11 deletions

View File

@@ -38,6 +38,10 @@ function AtFormController (eventService, strings) {
component.category = category;
component.form = vm.state;
if (category === 'input') {
scope.state[component.state.id] = component.state;
}
vm.components.push(component);
};
@@ -189,6 +193,7 @@ function AtFormController (eventService, strings) {
for (let j = 0; j < vm.components.length; j++) {
if (components[i] === vm.components[j].state) {
vm.components.splice(j, 1);
delete scope.state[components[i].id];
break;
}
}