mirror of
https://github.com/we-promise/sure.git
synced 2026-04-07 14:31:25 +00:00
Fix subconditions and condition group form (#2256)
This commit is contained in:
committed by
GitHub
parent
e569ad0a8c
commit
1b4577e21e
@@ -13,7 +13,7 @@ export default class extends Controller {
|
||||
|
||||
addSubCondition() {
|
||||
const html = this.subConditionTemplateTarget.innerHTML.replaceAll(
|
||||
"IDX_PLACEHOLDER",
|
||||
"IDX_CHILD_PLACEHOLDER",
|
||||
this.#uniqueKey(),
|
||||
);
|
||||
|
||||
@@ -110,6 +110,6 @@ export default class extends Controller {
|
||||
}
|
||||
|
||||
#uniqueKey() {
|
||||
return Math.random().toString(36).substring(2, 15);
|
||||
return Date.now();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user