Uploaded image for project: 'Click'
  1. Click
  2. CLK-666

Adding controls to page or container should replace existing control with the same name

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.1.0
    • 2.2.0
    • core
    • None

    Description

      When adding controls, Click throws an exception if the Page or Container already contains a control with the same name. Page and Panel models behave similarly.

      This behavior protects users from accidentally adding controls with the same name, but at the same time doesn't work well for stateful pages where existing controls should be replaced.

      The proposed change is to not throw an exception and simply replace the existing control or model object.

      Attachments

        Activity

          People

            sabob Bob Schellink
            sabob Bob Schellink
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment