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

Method stateChange

src/Datepicker/Datetime.js:161–169  ·  view source on GitHub ↗
(state, pop)

Source from the content-addressed store, hash-verified

159 }
160
161 stateChange (state, pop) {
162 // setTimeout wait checkClickAway completed
163 setTimeout(() => {
164 this.setState(state);
165 if (pop && this.props.onChange) {
166 this.props.onChange(this.getValue());
167 }
168 }, 0);
169 }
170
171 stageChange (stage) {
172 this.stateChange({ stage });

Callers 7

stageChangeMethod · 0.95
yearChangeMethod · 0.95
monthChangeMethod · 0.95
dayChangeMethod · 0.95
timeChangeMethod · 0.95
nextMethod · 0.95
preMethod · 0.95

Calls 2

getValueMethod · 0.95
onChangeMethod · 0.80

Tested by

no test coverage detected