Uploaded image for project: 'PUBLIC - Liferay Alloy UI'
  1. PUBLIC - Liferay Alloy UI
  2. AUI-1040

Button.hide() does not work when using in a vertical toolbar

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.x, master, master-deprecated, 3.0.x, 3.1.x
    • Fix Version/s: 2.0.x, 2.0.0.83-deprecated
    • Component/s: Toolbar
    • Labels:
      None

      Description

      For Y.Buttons in a vertical toolbar, calling Button.hide() does not hide the button.

      The snippet below demonstrates the issue:

              var removeButton = new Y.Button(
                  {
                      icon: 'icon-remove',
                  }
              );
      
              var boldButton = new Y.Button(
                  {
                      icon: 'icon-bold',
                  }
              );
      
              new Y.Toolbar({
                  children: [
                      [
                          '',
                          'vertical',
                          removeButton,
                          boldButton
                      ]
                  ]
              }).render();
      
              boldButton.hide();
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jonathan.mak Jonathan Mak (Inactive)
              Reporter:
              dennis.ju Dennis Ju (Inactive)
              Participants of an Issue:
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                5 years, 28 weeks, 1 day ago

                  Packages

                  Version Package
                  2.0.x
                  2.0.0.83-deprecated