Skip to content

[HxInputBase] [HxFilterForm] [HxChipList] - GetChipRemoveAction does not support nested (composite) models #1062

@hakenr

Description

@hakenr

AB#83852 GoranG3 PROD:

  1. InvoiceList
  2. Remove any chip

(We changed TFilterModel to composite model and the filter-inputs are bound as @bind="@context.Filter.TransactionType".)

Operation ID:1aa3c15d66d54918bba49bf0f3026737
Havit.Diagnostics.Contracts.ContractException: Contract failed: Invalid FieldIdentifier. Check ValueExpression parameter.
   at Havit.Diagnostics.Contracts.Contract.ThrowException[ContractException](String message)
   at Havit.Diagnostics.Contracts.Contract.Assert(Boolean condition, String userMessage)
   at Havit.Blazor.Components.Web.Bootstrap.HxInputBase`1.<>c__DisplayClass108_0[[System.Nullable`1[[Havit.GoranG3.Primitives.Finance.TransactionKind, Havit.GoranG3.Primitives, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]], System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].<GetChipRemoveAction>b__0(Object model)
   at Havit.Blazor.Components.Web.Bootstrap.HxFilterForm`1[[Havit.GoranG3.Web.Client.Finance.Invoices.Models.InvoiceListSettings, Havit.GoranG3.Web.Client, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].RemoveChipAsync(ChipItem chipToRemove)
   at Havit.Blazor.Components.Web.Bootstrap.HxListLayout`1.<HandleChipRemoveClick>d__100[[Havit.GoranG3.Web.Client.Finance.Invoices.Models.InvoiceListSettings, Havit.GoranG3.Web.Client, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].MoveNext()
   at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task)
   at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task)
   at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task , ComponentState )

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions