Skip to content

Commit 99406bd

Browse files
authored
fix: ArrayWidget inlines name (#836)
1 parent 61aa881 commit 99406bd

File tree

1 file changed

+1
-1
lines changed
  • src/unfold/contrib/forms/templates/unfold/forms

1 file changed

+1
-1
lines changed

src/unfold/contrib/forms/templates/unfold/forms/array.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
{% endfor %}
1515

1616
<template x-for="(item, index) in items" :key="item.key">
17-
<div class="flex flex-row">
17+
<div class="flex flex-row" x-init="if ($el.getElementsByTagName('input')[0].name.includes('__prefix__')) { $el.getElementsByTagName('input')[0].name = $el.parentElement.getElementsByTagName('input')[0].name }">
1818
{% with widget=template %}
1919
{% include template.template_name %}
2020
{% endwith %}

0 commit comments

Comments
 (0)