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

Removing AutoCompleteTextField does not remove it from its parent Page

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.0.1, 1.5.1
    • 2.1.0, 2.1.0 RC1, 1.5.2
    • extras
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: