Skip to content

Commit

Permalink
Merge pull request #91 from Lupennat/fix-unique-editorName
Browse files Browse the repository at this point in the history
fix: use formUniqueId on editorName
  • Loading branch information
mostafaznv authored Oct 31, 2023
2 parents 9946931 + 8ae2e94 commit 50c9755
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 50c9755

Please sign in to comment.