mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Fix field-template bug where wrong key gets used (#4884)
This commit is contained in:
@@ -261,7 +261,7 @@ export default defineComponent({
|
||||
|
||||
if (!field) return '';
|
||||
|
||||
return `<button contenteditable="false" data-field="${field.field}">${field.name}</button>`;
|
||||
return `<button contenteditable="false" data-field="${fieldKey}">${field.name}</button>`;
|
||||
})
|
||||
.join('');
|
||||
contentEl.value.innerHTML = newInnerHTML;
|
||||
@@ -278,8 +278,8 @@ export default defineComponent({
|
||||
height: 100%;
|
||||
padding: var(--input-padding) 0;
|
||||
overflow: hidden;
|
||||
font-family: var(--family-monospace);
|
||||
font-size: 14px;
|
||||
font-family: var(--family-monospace);
|
||||
white-space: nowrap;
|
||||
|
||||
::v-deep {
|
||||
|
||||
Reference in New Issue
Block a user