shesha-io / shesha-framework

An open-source Low-Code development framework for .NET developers. Create .NET based business applications with 80% less code.
https://shesha.io
Apache License 2.0
384 stars 75 forks source link

Entity Reference navigation with `Text Title and Icon` options causes endless loading in Link and Modal Dialog Box display types #2474

Open hlayisanimazuze opened 1 day ago

hlayisanimazuze commented 1 day ago

When the "Text Title" and "Icon" options are selected as the display type for the Entity Reference navigation, the component enters an infinite rendering loop on both the Navigation Link and Modal Dialog Box display types. This causes the UI to load non-stop, preventing proper functionality.

**TSteps to reproduce the behavior:

  1. Go to 'https://functional-adminportal-test.azurewebsites.net/dynamic/TestModule/bugfixes-details?id=792e7691-0a37-4b65-947c-0076315d5878&firstName=Muriel%20l' and navigate to the designer form to update the display setting to Text title and Icon, and Entity Reference Type should be Navigation Link and Modal Dialog Box when testing
  2. Render the details view
  3. Confirm the behavior of the compoent
  4. Actual Results: The component loads non stop when used on Navigation Link and Modal Dialog while using Icon and Text Title options

Expected behavior

Note: If entity reference types(Navigation Link and Modal Dialog Box), does not support the new implementation, then we should hide the options/display a message to alert users that the options are not supported

See attached video: https://jam.dev/c/d9f70834-c094-430f-b09b-b8808ee7e66c