Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
mounted() {
(this as OverlayScrollbarsComponent)._osInstace = OverlayScrollbars(
this.osTarget(),
this.options || {},
this.extensions
);
},
componentDidMount() {
this._osInstance = OverlayScrollbars(this.osTarget(), this.props.options || {}, this.props.extensions);
}
componentWillUnmount() {
this.ngZone.runOutsideAngular((function () {
_this._osInstance = OverlayScrollbars(_this.osTarget(), _this._options || {}, _this._extensions);
}));
};
import 'overlayscrollbars/css/OverlayScrollbars.css';
import './index.css';
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import * as serviceWorker from './serviceWorker';
import OverlayScrollbars from 'overlayscrollbars';
ReactDOM.render(, document.getElementById('root'));
serviceWorker.unregister();
OverlayScrollbars(document.body, {
nativeScrollbarsOverlaid: {
initialize: false
}
});
this.ngZone.runOutsideAngular(() => {
this._osInstance = OverlayScrollbars(this.osTarget(), this._options || {}, this._extensions);
});
}
componentDidMount() {
this._osInstance = OverlayScrollbars(this.osTarget(), this.props.options || {}, this.props.extensions);
}
mounted() {
this._osInstace = OverlayScrollbars(this.osTarget(), this.options || {}, this.extensions);
},
beforeDestroy() {