Refresh input fields on the connector if the field is readonly
This commit is contained in:
@@ -75,7 +75,7 @@
|
|||||||
:placeholder="field.field.example"
|
:placeholder="field.field.example"
|
||||||
:autofocus="field.autofocus"
|
:autofocus="field.autofocus"
|
||||||
:tabindex="field.tabIndex"
|
:tabindex="field.tabIndex"
|
||||||
:disabled="field.field.readonly"
|
:disabled="readonly(key, field, field.field.readonly)"
|
||||||
@keydown="triggerSuggestions($event, key, field)"
|
@keydown="triggerSuggestions($event, key, field)"
|
||||||
@focus="focus(key, field, true)"
|
@focus="focus(key, field, true)"
|
||||||
@blur="focus(key, field, false)"
|
@blur="focus(key, field, false)"
|
||||||
@@ -93,7 +93,7 @@
|
|||||||
:placeholder="field.field.example"
|
:placeholder="field.field.example"
|
||||||
:autofocus="field.autofocus"
|
:autofocus="field.autofocus"
|
||||||
:tabindex="field.tabIndex"
|
:tabindex="field.tabIndex"
|
||||||
:disabled="field.field.readonly"
|
:disabled="readonly(key, field, field.field.readonly)"
|
||||||
@focus="focus(key, field, true)"
|
@focus="focus(key, field, true)"
|
||||||
@blur="focus(key, field, false)"
|
@blur="focus(key, field, false)"
|
||||||
@input="changed(key, field, false)"
|
@input="changed(key, field, false)"
|
||||||
@@ -109,7 +109,7 @@
|
|||||||
:name="field.field.name"
|
:name="field.field.name"
|
||||||
:autofocus="field.autofocus"
|
:autofocus="field.autofocus"
|
||||||
:tabindex="field.tabIndex"
|
:tabindex="field.tabIndex"
|
||||||
:disabled="field.field.readonly"
|
:disabled="readonly(key, field, field.field.readonly)"
|
||||||
@focus="focus(key, field, true)"
|
@focus="focus(key, field, true)"
|
||||||
@blur="focus(key, field, false)"
|
@blur="focus(key, field, false)"
|
||||||
@input="changed(key, field, false)"
|
@input="changed(key, field, false)"
|
||||||
@@ -125,7 +125,7 @@
|
|||||||
:name="field.field.name"
|
:name="field.field.name"
|
||||||
:autofocus="field.autofocus"
|
:autofocus="field.autofocus"
|
||||||
:tabindex="field.tabIndex"
|
:tabindex="field.tabIndex"
|
||||||
:disabled="field.field.readonly"
|
:disabled="readonly(key, field, field.field.readonly)"
|
||||||
@keyup="expandTextarea($event)"
|
@keyup="expandTextarea($event)"
|
||||||
@keydown="
|
@keydown="
|
||||||
triggerSuggestions($event, key, field) || expandTextarea($event)
|
triggerSuggestions($event, key, field) || expandTextarea($event)
|
||||||
@@ -145,7 +145,7 @@
|
|||||||
:name="field.field.name + '-file'"
|
:name="field.field.name + '-file'"
|
||||||
:autofocus="field.autofocus"
|
:autofocus="field.autofocus"
|
||||||
:tabindex="field.tabIndex"
|
:tabindex="field.tabIndex"
|
||||||
:disabled="field.field.readonly"
|
:disabled="readonly(key, field, field.field.readonly)"
|
||||||
@focus="focus(key, field, true)"
|
@focus="focus(key, field, true)"
|
||||||
@blur="focus(key, field, false)"
|
@blur="focus(key, field, false)"
|
||||||
@change="importFile($event.target, field)"
|
@change="importFile($event.target, field)"
|
||||||
@@ -171,7 +171,7 @@
|
|||||||
:autofocus="field.autofocus"
|
:autofocus="field.autofocus"
|
||||||
:value="field.field.value"
|
:value="field.field.value"
|
||||||
:tabindex="field.tabIndex"
|
:tabindex="field.tabIndex"
|
||||||
:disabled="field.field.readonly"
|
:disabled="readonly(key, field, field.field.readonly)"
|
||||||
@focus="focus(key, field, true)"
|
@focus="focus(key, field, true)"
|
||||||
@blur="focus(key, field, false)"
|
@blur="focus(key, field, false)"
|
||||||
@input="changed(key, field, false)"
|
@input="changed(key, field, false)"
|
||||||
@@ -209,7 +209,7 @@
|
|||||||
:checked="field.field.value === option"
|
:checked="field.field.value === option"
|
||||||
:aria-checked="field.field.value === option"
|
:aria-checked="field.field.value === option"
|
||||||
:tabindex="field.nextSubTabIndex(oKey)"
|
:tabindex="field.nextSubTabIndex(oKey)"
|
||||||
:disabled="field.field.readonly"
|
:disabled="readonly(key, field, field.field.readonly)"
|
||||||
@focus="focus(key, field, true)"
|
@focus="focus(key, field, true)"
|
||||||
@blur="focus(key, field, false)"
|
@blur="focus(key, field, false)"
|
||||||
@input="changed(key, field, false)"
|
@input="changed(key, field, false)"
|
||||||
@@ -638,6 +638,10 @@ export default {
|
|||||||
|
|
||||||
return verified;
|
return verified;
|
||||||
},
|
},
|
||||||
|
readonly(key, field, readonly) {
|
||||||
|
this.verify(key, field, readonly);
|
||||||
|
return readonly;
|
||||||
|
},
|
||||||
focus(key, field, focused) {
|
focus(key, field, focused) {
|
||||||
field.highlighted = false;
|
field.highlighted = false;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user