OpenCut/apps/web
KEHUACN 704b418529 fix: replace outer <button> with <div> in TimelineTrackContent to resolve nested button hydration error
TimelineTrackContent wrapped its entire content in a <button>, while each
timeline element (ElementInner) also rendered its own <button> for click
handling. This created an invalid HTML structure where <button> was nested
inside <button>, triggering a React hydration error:

  "In HTML, <button> cannot be a descendant of <button>."

The outer <button> in TimelineTrackContent only handled click-to-deselect
and mousedown events — it did not need button semantics. Replacing it with
a <div> preserves the exact same event handling behavior while eliminating
the invalid nesting.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-02-13 11:43:08 +08:00
..
migrations codebase overhaul (#697) 2026-01-31 00:20:04 +01:00
public fix landing image 2026-02-08 01:17:29 +01:00
src fix: replace outer <button> with <div> in TimelineTrackContent to resolve nested button hydration error 2026-02-13 11:43:08 +08:00
.env.example codebase overhaul (#697) 2026-01-31 00:20:04 +01:00
.gitignore codebase overhaul (#697) 2026-01-31 00:20:04 +01:00
components.json Migrate remaining tailwind config pieces to CSS config 2025-07-30 16:53:31 -04:00
drizzle.config.ts codebase overhaul (#697) 2026-01-31 00:20:04 +01:00
next-env.d.ts next-env.d.ts 2026-02-01 11:31:37 +01:00
next.config.ts feat: stickers panel (#539) 2025-08-15 02:11:21 +02:00
package.json update deps 2026-01-31 22:24:22 +01:00
postcss.config.mjs Lay groundwork for Tailwind v4 upgrade 2025-07-30 13:15:09 -04:00
tsconfig.json codebase overhaul (#697) 2026-01-31 00:20:04 +01:00
tsconfig.tsbuildinfo codebase overhaul (#697) 2026-01-31 00:20:04 +01:00