Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

handleCellClick do not execut on a cell that have events inside #20

Open
PetrusBorges opened this issue Nov 8, 2023 · 0 comments
Open

Comments

@PetrusBorges
Copy link

unknown_2023.11.08-14.50_clip_1.online-video-cutter.com.mp4

handleEventClick works fine but when i try to click in a cell that have events inside to execute handleCellClick dont work

My actual component

const handleEventClick = (event: React.MouseEvent, item: Events) => {
  console.log(event);
}

const handleCellClick = (event, row, day) => {
 console.log(day.day);
}
  
<Scheduler
  locale="en"
  events={events.flat()}
  legacyStyle={true}
  options={state?.options}
  toolbarProps={state?.toolbarProps}
  onCellClick={handleCellClick}
  onTaskClick={handleEventClick}
/>
  
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant