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

Method dayChange

src/Datepicker/Datetime.js:185–195  ·  view source on GitHub ↗
(day)

Source from the content-addressed store, hash-verified

183 }
184
185 dayChange (day) {
186 let d = this.changeDate({
187 year: day.getFullYear(),
188 month: day.getMonth(),
189 day: day.getDate()
190 });
191 this.stateChange({ value: d, current: d }, true);
192 if (this.props.type === DATE) {
193 this.close();
194 }
195 }
196
197 timeChange (time) {
198 let d = this.changeDate(time),

Callers

nothing calls this directly

Calls 3

changeDateMethod · 0.95
stateChangeMethod · 0.95
closeMethod · 0.95

Tested by

no test coverage detected