There is no option to detect does open model or close
AlekseiPetrovDev opened this issue · 2 comments
AlekseiPetrovDev commented
@Kiryous @fsher during one of integration we found out that there is no ability to detect status of our modal. Some project want o implement for example custom backdrop.
Proposals: as easiest solution - add callback which will return actual state and will be triggered on setOpen action.
<NotificationsButton {...props} onStateChange={(isOpen) => {console.log(isOpen)}}
fsher commented
@AlekseiPetrovDev great point. I'm currently adding the ability to control overall opening/closing/managing dialect related windows. Should be added relatively soon.
Akashmathwani commented
Isn't it possible via checking UI state like ui.open and get UI from
const { ui, open, navigation } = useDialectUiId(
'dialect-bottom-chat'
)