fixed closing on click on button children (e.g. caret)