I want to add some event on a schedule card of tui.calendar. I tried to get the root element then querySelectorAll the schedule card's attribute.
The schedule card, calendarRef exists. the root element from getRootElement exists the div tag of the schedules card, but my element still empty.
What is wrong? My purpose is to get the schedule card element then add contextmenu for each. Thanks!
Update: I changed useLayoutEffect to useEffect then it's work. But only on Codesanbox not my project :D I don't know why?