1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-09 07:25:19 +02:00

Run the prefix update runs on a load of a form, which handles prefixes on an edit since no conditions change

This commit is contained in:
hatz 2025-05-10 13:19:41 -05:00
parent 11626b4d0f
commit 555ab8fb97
No known key found for this signature in database

View file

@ -11,6 +11,11 @@ export default class extends Controller {
"effectiveDateInput", "effectiveDateInput",
]; ];
connect() {
// Update condition prefixes on first connection (form render)
this.updateConditionPrefixes();
}
addConditionGroup() { addConditionGroup() {
this.#appendTemplate( this.#appendTemplate(
this.conditionGroupTemplateTarget, this.conditionGroupTemplateTarget,