Commit 48a8ebe
committed
fix: only title/time area of event card was clickable
The onClick handler was on .dragContent, which only wraps the title,
time and location text. The rest of the card (padding, empty space
below the text, and the area around the resize handle) had no click
handler, so clicks in those areas did nothing — only the title/time
text was clickable.
Move onClick to the outer .card div so the entire card area is
clickable. handleClick already suppresses the click when an actual
resize or drag occurred, so this doesn't interfere with those
interactions. Drag listeners stay on .dragContent so dragging still
initiates from the content area only.1 parent 2629cab commit 48a8ebe
1 file changed
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
267 | 267 | | |
268 | 268 | | |
269 | 269 | | |
| 270 | + | |
270 | 271 | | |
271 | 272 | | |
272 | 273 | | |
| |||
306 | 307 | | |
307 | 308 | | |
308 | 309 | | |
309 | | - | |
310 | 310 | | |
311 | 311 | | |
312 | 312 | | |
| |||
330 | 330 | | |
331 | 331 | | |
332 | 332 | | |
333 | | - | |
334 | 333 | | |
335 | 334 | | |
336 | 335 | | |
| |||
0 commit comments