Skip to content

Settings afterShow, afterHide doesn't work #28

Description

Options afterShow, afterHide doesn't work at all.

This is my init code. Nothing has been changed in src code.

  $('.dropdown').dropit({
    beforeShow: function(){
      $('.dropdown-submenu').addClass('animated animDrop')
    },
    afterShow: function(){
      $('.dropdown-submenu').removeClass('animated animDrop')
    },
    beforeHide: function(){
      $('.dropdown-submenu').addClass('animated zoomOut')
    },
    afterHide: function(){
      $('.dropdown-submenu').removeClass('animated zoomOut')
    },
  });

If i comment out / delete afterHide & afterShow - it won't give me expected effect cause it only takes first applied class (animated animDrop)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions