Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions examples/single.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ class Test extends React.Component {
console.log('onFocus');
};

afterDropdownVisibleChange = (open, popupDOMNode) => {
console.log('afterDropdownVisibleChange', open, popupDOMNode);
};

render() {
if (this.state.destroy) {
return null;
Expand All @@ -53,6 +57,7 @@ class Test extends React.Component {
value={this.state.value}
placeholder="placeholder"
dropdownMenuStyle={{ maxHeight: 200, overflow: 'auto' }}
afterDropdownVisibleChange={this.afterDropdownVisibleChange}
style={{ width: 500 }}
onBlur={this.onBlur}
onFocus={this.onFocus}
Expand Down
2 changes: 2 additions & 0 deletions src/Select.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ const Select = createClass({
onSelect: noop,
onSearch: noop,
onDeselect: noop,
afterDropdownVisibleChange: () => {},
showArrow: true,
dropdownMatchSelectWidth: true,
dropdownStyle: {},
Expand Down Expand Up @@ -538,6 +539,7 @@ const Select = createClass({
if (open) {
this.maybeFocus(open, needFocus);
}
this.props.afterDropdownVisibleChange(open, this.getPopupDOMNode());
});
},
setInputValue(inputValue, fireSearch = true) {
Expand Down