1
00:00:01,667 --> 00:00:06,200
Your dialog just opened. So where did the Confirm button go?

2
00:00:06,833 --> 00:00:08,133
Look at the bottom of this panel.

3
00:00:08,900 --> 00:00:13,067
The dialog uses fixed positioning, but the panel has a transform.

4
00:00:13,700 --> 00:00:15,133
That makes it the reference point.

5
00:00:15,733 --> 00:00:19,033
With overflow set to hidden, the panel clips the button.

6
00:00:19,767 --> 00:00:23,900
In Vue, wrap the dialog in Teleport and target the body element.

7
00:00:24,567 --> 00:00:28,133
Watch what happens. The dialog starts inside the panel.

8
00:00:28,133 --> 00:00:32,733
Turn Teleport on, and it moves under body. There’s the button.

9
00:00:33,400 --> 00:00:36,267
Click Confirm, and the parent still updates the counter.

10
00:00:37,100 --> 00:00:40,133
The DOM location changed. Props and events still work.

11
00:00:40,967 --> 00:00:43,833
In a real dialog, remember keyboard focus too.
