Uploaded image for project: 'Tapestry'
  1. Tapestry
  2. TAPESTRY-302

Palette component select arrows appear enabled on load

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.5
    • Fix Version/s: 4.0
    • Component/s: Contrib
    • Labels:
      None

      Description

      When the palette component loads, both selection arrows (select/deselect) show the enabled images, even though they should be disabled as no items are highlighted on load. You can see the javascript defaulting them to disabled:
      <componentId>$buttons.selectDisabled = true;
      <componentId>$buttons.deselectDisabled = true;

      But the javascript function update_<componentId>() isn't being called, where the switching of the enabled/disabled images happens.

      For a workaround i've added a call to the update javascript function on page load. But this is semi-fragile as if the component id is changed the generated function name will also change.

        Attachments

          Activity

            People

            • Assignee:
              hlship Howard Lewis Ship
              Reporter:
              stmorgan Scott Morgan
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: