MCPcopy Create free account
hub / github.com/DTStack/molecule / constructor

Method constructor

src/components/select/select.tsx:60–68  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

58 private selectInput: RefObject<HTMLInputElement>;
59
60 constructor(props) {
61 super(props);
62 this.contextView = useContextView({
63 shadowOutline: false,
64 });
65 this.state = this.getDefaultState(this.props);
66 this.selectElm = React.createRef();
67 this.selectInput = React.createRef();
68 }
69
70 static getDerivedStateFromProps(props, state) {
71 if (props.value !== state.value) {

Callers

nothing calls this directly

Calls 2

getDefaultStateMethod · 0.95
useContextViewFunction · 0.90

Tested by

no test coverage detected