Skip to content

Commit

Permalink
use formUniqueId inside editorName
Browse files Browse the repository at this point in the history
  • Loading branch information
Lupennat committed Oct 30, 2023
1 parent 9946931 commit 8ae2e94
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/js/field.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions resources/js/components/editor-field.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import RegexParser from 'regex-parser'
export default {
mixins: [DependentFormField, HandlesValidationErrors, HasUUID],
props: ['resourceName', 'resourceId', 'field', 'toolbar'],
props: ['resourceName', 'resourceId', 'field', 'toolbar', 'formUniqueId'],
components: {SnippetBrowser, MediaBrowser},
data() {
return {
Expand All @@ -35,7 +35,7 @@ export default {
editorName() {
const attribute = this.currentField.attribute.toLowerCase().replace(/[^a-zA-Z0-9]+(.)/g, (m, chr) => chr.toUpperCase())
return attribute + 'Editor'
return attribute + 'Editor' + this.formUniqueId;
}
},
watch: {
Expand Down

0 comments on commit 8ae2e94

Please sign in to comment.