MCPcopy Index your code
hub / github.com/microsoft/SandDance / constructor

Method constructor

docs/app/js/sanddance-app.js:12569–12577  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

12567function _Search(_props) {
12568 class __Search extends (0, _base.base).react.Component {
12569 constructor(props){
12570 super(props);
12571 this.state = this.getInitialState(this.props);
12572 this.dropdownRef = (0, _base.base).react.createRef();
12573 props.explorer.dialogFocusHandler.focus = ()=>{
12574 var _a;
12575 return (_a = this.dropdownRef.current) === null || _a === void 0 ? void 0 : _a.focus();
12576 };
12577 }
12578 getInitialState(props) {
12579 const initialState = {
12580 groups: props.initializer.search || [

Callers

nothing calls this directly

Calls 2

getInitialStateMethod · 0.95
focusMethod · 0.45

Tested by

no test coverage detected