aldabil21/react-scheduler

Feature request: Disable viewer popper completely

Closed this issue · 7 comments

Hi,
first of all thank for the awesome library!
I have a feature request: I have the use case where the user clicks on a calendar event and gets redirected to a different view. Currently, I use the onEventClick callback to navigate to the new view and use this as a hack to get rid of the unwanted popper:

customViewer={(_event, close) => {
  setTimeout(function () {
    close();
  }, 50);
}}

This seems not very good to me and could lead to race conditions.

Could you introduce a property, say disableViewer: boolean that disables the viewer popper completely?

Hi

you can use disableViewer prop in next release

Thanks!

@aldabil21 Just tried it out. I have to mention one shortcoming: If the disableViewer option is set, the onEventClick callback does not fire. Could you fix that?

@marcauberer try with version 2.8.4 that enables the use of onEventClick with disableViewer. #338

Will do, thanks!

@aldabil21 @slash-84 onEventClick works now, but the viewer is still showing when agenda view is active. Can you fix that as well?

i created #340