Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
componentDidMount() {
RX.Accessibility.screenReaderChangedEvent.subscribe(this._screenReaderStateChanged);
if (RX.Accessibility.isScreenReaderEnabled()) {
this._setupForAccessibility();
}
this._isMounted = true;
this._componentDidRender();
// If an initial selection key was provided, ensure that we scroll to the item
if (this.props.initialSelectedKey) {
this._scrollToItemKey(this.props.initialSelectedKey);
}
}
componentDidMount() {
RX.Accessibility.screenReaderChangedEvent.subscribe(this._screenReaderStateChanged);
if (RX.Accessibility.isScreenReaderEnabled()) {
this._setupForAccessibility();
}
this._isMounted = true;
this._componentDidRender();
// If an initial selection key was provided, ensure that we scroll to the item
if (this.props.initialSelectedKey) {
this._scrollToItemKey(this.props.initialSelectedKey);
}
}