Using Drawer component, onRequestChange function is not called.
The non working code should be working, don't know what is going on with this component.
onDrawerStatusChange() {
console.log('Drawer status changed');
}
render() {
return (
<Drawer onRequestChange={this.onDrawerStatusChange} />
);
}
Regardless the previous code, the following examples are working fine.
onDrawerStatusChange() {
console.log('Drawer status changed');
}
render() {
return (
<div>
<Drawer onRequestChange={console.log('Drawer status changed')} />
<Drawer onRequestChange={this.onDrawerStatusChange()} />
</ div>
);
}
Could that be linked to #7129?
Also experience this issue. Was this resolved?
I've noticed that onRequestChange is called only if docked property is set to false
@stfnlzvn I can't think of any use case for listening to onRequestChange when the component is docked.
I'm fine with this and I was just pointing out how I managed to get onRequestChange to fire
@stfnlzvn I'm happy to hear it :).
Most helpful comment
I'm fine with this and I was just pointing out how I managed to get
onRequestChangeto fire