MCPcopy Create free account
hub / github.com/reactstrap/reactstrap / constructor

Function constructor

src/Modal.js:114–137  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

112
113class Modal extends React.Component {
114 constructor(props) {
115 super(props);
116
117 this._element = null;
118 this._originalBodyPadding = null;
119 this.getFocusableChildren = this.getFocusableChildren.bind(this);
120 this.handleBackdropClick = this.handleBackdropClick.bind(this);
121 this.handleBackdropMouseDown = this.handleBackdropMouseDown.bind(this);
122 this.handleEscape = this.handleEscape.bind(this);
123 this.handleStaticBackdropAnimation =
124 this.handleStaticBackdropAnimation.bind(this);
125 this.handleTab = this.handleTab.bind(this);
126 this.onOpened = this.onOpened.bind(this);
127 this.onClosed = this.onClosed.bind(this);
128 this.manageFocusAfterClose = this.manageFocusAfterClose.bind(this);
129 this.clearBackdropAnimationTimeout =
130 this.clearBackdropAnimationTimeout.bind(this);
131 this.trapFocus = this.trapFocus.bind(this);
132
133 this.state = {
134 isOpen: false,
135 showStaticBackdropAnimation: false,
136 };
137 }
138
139 componentDidMount() {
140 const { isOpen, autoFocus, onEnter } = this.props;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…