MCPcopy Create free account
hub / github.com/Lobos/react-ui / showOptions

Function showOptions

src/Select.js:53–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

51 }
52
53 showOptions () {
54 if (this.state.active || this.props.readOnly) {
55 return;
56 }
57
58 let options = this.refs.options;
59 options.style.display = 'block';
60 let offset = getOuterHeight(options) + 5;
61
62 let el = this.refs.container;
63 let dropup = overView(el, offset);
64
65 withoutTransition(el, () => {
66 this.setState({ dropup });
67 });
68
69 this.bindClickAway();
70
71 setTimeout(() => {
72 this.setState({ filter: '', active: true });
73 }, 0);
74 }
75
76 hideOptions () {
77 this.setState({ active: false });

Callers

nothing calls this directly

Calls 4

getOuterHeightFunction · 0.90
overViewFunction · 0.90
withoutTransitionFunction · 0.90
bindClickAwayMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…