Skip to content

Commit

Permalink
Set scope in parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
takayukister committed Aug 11, 2024
1 parent f9f3117 commit 681ea89
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion admin/includes/js/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions admin/includes/js/src/tag-generator-v2.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,15 @@ const update = form => {
};


const compose = form => {
const basetype = form.querySelector(
const compose = scope => {
const basetype = scope.querySelector(
'[data-tag-part="basetype"]'
)?.value.trim();

if ( ! basetype ) {
return;
}

const scope = form;

let type = basetype;

const typeSuffixField = scope.querySelector(
Expand Down

0 comments on commit 681ea89

Please sign in to comment.