Fix: change @bind to @bind-Value for MultiLangInput component (custom components require explicit @bind-Value syntax)

This commit is contained in:
Saidamin Kattan
2026-08-08 18:45:07 +03:00
parent 1d9ad26b98
commit ed47a77b73
114 changed files with 1362 additions and 71 deletions
@@ -78,7 +78,7 @@
<div class="badge badge-primary badge-sm">@(_languages[_activeLang])</div>
</h4>
</div>
<MultiLangInput @bind="_names" ActiveCulture="@_activeLang" HideTabs="true"
<MultiLangInput @bind-Value="_names" ActiveCulture="@_activeLang" HideTabs="true"
Placeholder="Enter category name in the selected language..." />
<ValidationMessage For="@(() => _names)" class="text-error text-sm mt-1" />
</div>
@@ -89,7 +89,7 @@
Description
<div class="badge badge-secondary badge-sm">@(_languages[_activeLang])</div>
</h4>
<MultiLangInput @bind="_descriptions" ActiveCulture="@_activeLang"
<MultiLangInput @bind-Value="_descriptions" ActiveCulture="@_activeLang"
HideTabs="true" IsTextArea="true"
Placeholder="Summarize what this category contains..." />
<ValidationMessage For="@(() => _descriptions)" class="text-error text-sm mt-1" />
+2 -2
View File
@@ -103,7 +103,7 @@
<div class="badge badge-primary badge-sm">@(_languages[_activeLang])</div>
</h4>
</div>
<MultiLangInput @bind="_names" ActiveCulture="@_activeLang" HideTabs="true"
<MultiLangInput @bind-Value="_names" ActiveCulture="@_activeLang" HideTabs="true"
Placeholder="Enter product name in the selected language..." />
<ValidationMessage For="@(() => _names)" class="text-error text-sm mt-1" />
</div>
@@ -114,7 +114,7 @@
Description
<div class="badge badge-secondary badge-sm">@(_languages[_activeLang])</div>
</h4>
<MultiLangInput @bind="_descriptions" ActiveCulture="@_activeLang" HideTabs="true"
<MultiLangInput @bind-Value="_descriptions" ActiveCulture="@_activeLang" HideTabs="true"
IsTextArea="true" Placeholder="Write a compelling product description..." />
<ValidationMessage For="@(() => _descriptions)" class="text-error text-sm mt-1" />
</div>