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

Function constructor

src/Offcanvas.js:85–107  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

83
84class Offcanvas extends React.Component {
85 constructor(props) {
86 super(props);
87
88 this._element = null;
89 this._originalBodyPadding = null;
90 this.getFocusableChildren = this.getFocusableChildren.bind(this);
91 this.handleBackdropClick = this.handleBackdropClick.bind(this);
92 this.handleBackdropMouseDown = this.handleBackdropMouseDown.bind(this);
93 this.handleEscape = this.handleEscape.bind(this);
94 this.handleTab = this.handleTab.bind(this);
95 this.onOpened = this.onOpened.bind(this);
96 this.onClosed = this.onClosed.bind(this);
97 this.manageFocusAfterClose = this.manageFocusAfterClose.bind(this);
98 this.clearBackdropAnimationTimeout =
99 this.clearBackdropAnimationTimeout.bind(this);
100 this.trapFocus = this.trapFocus.bind(this);
101 this._backdrop = React.createRef();
102 this._dialog = React.createRef();
103
104 this.state = {
105 isOpen: false,
106 };
107 }
108
109 componentDidMount() {
110 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…