2 Replies Latest reply on Jan 16, 2016 6:30 PM by mickyhulse

    Palette’s UI close button firing onClose callback multiple times

    mickyhulse Level 1



      When doing:


      palette.onClose = function() { ... }


      … and then clicking on the palette’s UI close button (the small OS UI circle in top left corner), the onClose callback fires at least 20 times.


      Why? Is this normal behavior?


      When turning off the OS UI close button (using option closeButton: false), and creating a button instead:


      palette.myCloseButton.onClick = function() { ... }


      The onClick fires once and the palette window is closed.


      Anyone else notice this difference? Is it just me?


      I'd love to not have a close button for my palette … I'd prefer to use the OS UI close circular button (but not if it's going to fire the callback many times in a row).