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
369 stars 72 forks source link

Icon components does not get disabled when default icon is customized #1744

Open Tshepiso-R opened 3 months ago

Tshepiso-R commented 3 months ago

Describe the bug When the default icon is customized the edit mode must be defaulted read-only i.e. when you customize the default icon, it should be impossible to render the form when the component is rendered.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'https://function-adminportal-test.shesha.dev/dynamic/TestModule/test-bugstable'
  2. Click on 'Add Button'
  3. Open the form designer
  4. Drag and drop an icon component
  5. Bind it to a property
  6. On the Default Icon property, click the JS button and customize the default Icons
  7. Save and render the form
  8. Click on the default icon from the Create from
  9. Actual Results: You will notice that as soon as you click the icon, the dialog for selecting another icon displays, the component is not set to readOnly by default

Expected behavior When the default icon is customized it must be by default the icon's edit mode must be set to readOnly.

Screenshots

On form Designer image

On render image

Tshepiso-R commented 3 months ago

Related Item https://github.com/shesha-io/shesha-framework/issues/1183