Skip to content

Commit

Permalink
fix: ArrayWidget inlines name (#836)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasvinclav authored Nov 2, 2024
1 parent 61aa881 commit 99406bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/unfold/contrib/forms/templates/unfold/forms/array.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
{% endfor %}

<template x-for="(item, index) in items" :key="item.key">
<div class="flex flex-row">
<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 }">
{% with widget=template %}
{% include template.template_name %}
{% endwith %}
Expand Down

0 comments on commit 99406bd

Please sign in to comment.