- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
<CustomTimePicker
ref={ref => {
if (!ref || this.moved || this.handled)
return;
this.handled = true;
ref.picker.addEventListener('click', () => {
if (this.moved)
return;
setTimeout(() => {
const panel = ref.panelInstance;
if (!panel || !panel._reactInternalInstance)
return;
const node = panel._reactInternalInstance._renderedComponent._hostNode.parentNode.parentNode.parentNode;
this.moved = true;
this.refs.container.appendChild(node);
ref.picker.click();
ref.picker.click();
}, 0);
});
}}
showSecond={false}
value={this.props.value || moment()}
className="timepicker"
onChange={(e) => this.handleChange(e)}
format={this.format}
use12Hours
/>
AnalPerOral 07.07.2017 14:05 # 0
"<", ">", "{" и "}" в подобном контексте я ранее не замечал.
GaMeBiT 19.07.2017 18:41 # 0
jhonnysweets 20.07.2017 12:48 # +1