3

I want to create my own popup for react big calendar when I click on more text.

more text

React big calendar has onShowMore function but, It'll redirect to day view when I disable default popup.(popup={false})

check it out on here, https://codesandbox.io/s/react-big-calendar-example-lrwm4?file=/index.js

can you give me a possible solution for this ?

Update, I'm using custom tool bar and in order to use it I have to use onView. this function will redirect to the day view. need to prevent redirection from here.

YM-91
  • 251
  • 1
  • 4
  • 12

2 Answers2

0

Okay so to prevent the redirection to the day view, keep the popup={true} but add this to the onShowMore prop:

onShowMore={(event) => {
    event.preventDefault();
  }}

This will prevent the redirection. You can check out the working example of it here: https://codesandbox.io/s/silly-edison-rsfzpm?file=/index.js

-3

Use popup={true} instead of false.

Adrian Mole
  • 49,934
  • 160
  • 51
  • 83