Bind ID
This commit is contained in:
parent
ca6ee798d6
commit
7aeedb90bf
|
@ -74,7 +74,8 @@ $escapedPermissions = \array_map(function ($perm) {
|
|||
|
||||
<input
|
||||
required
|
||||
id="<?php echo $form; ?>Input"
|
||||
autocomplete="off"
|
||||
:id="'<?php echo $form; ?>Input' + index"
|
||||
name="<?php echo $form; ?>"
|
||||
form="<?php echo $form ?>"
|
||||
list="types"
|
||||
|
|
|
@ -33,8 +33,12 @@
|
|||
}
|
||||
});
|
||||
},
|
||||
addPermission() {
|
||||
this.permissions.push({ role: '' });
|
||||
addPermission(formId) {
|
||||
if (this.permissions.length > 0
|
||||
&& !this.validate(formId, this.permissions.length - 1)) {
|
||||
return;
|
||||
}
|
||||
this.permissions.push({role: ''});
|
||||
},
|
||||
updatePermission(index) {
|
||||
// Because the x-model does not update before the click event,
|
||||
|
|
Loading…
Reference in a new issue