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

Removing AutoCompleteTextField does not remove it from its parent Page

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.1, 1.5.1
    • Fix Version/s: 2.1.0, 2.1.0 RC1, 1.5.2
    • Component/s: extras
    • Labels:
      None

      Description

      > If you add an AutoCompleteTextField to a form and then attempt to remove the field from the form, the <input> field itself is removed but the generated <script> code remains. This causes a browser script error when the page is rendered.

      The reason the JavaScript is still rendered is because the AutoCompleteTextField is also added to its parent Page in order for Ajax callbacks to work properly.

      We need to remove the field from the page when the field is removed from its parent container.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: