Unverified Commit 91130782 authored by Jiwon Choi's avatar Jiwon Choi Committed by GitHub

[devtools] fix: error overlay closes when footer is clicked (#80513)

https://github.com/vercel/next.js/pull/77327 should've added the footer to the dialog's click outside exclude list as is moving out from the dialog.

#### Before

https://github.com/user-attachments/assets/3ee79982-acc7-4783-b629-7132361463fd

#### After

https://github.com/user-attachments/assets/172e413d-5276-4dd5-a13c-936ba4bd5e6a
parent c2fae27b
...@@ -18,6 +18,7 @@ const CSS_SELECTORS_TO_EXCLUDE_ON_CLICK_OUTSIDE = [ ...@@ -18,6 +18,7 @@ const CSS_SELECTORS_TO_EXCLUDE_ON_CLICK_OUTSIDE = [
'[data-info-popover]', '[data-info-popover]',
'[data-nextjs-devtools-panel-overlay]', '[data-nextjs-devtools-panel-overlay]',
'[data-nextjs-devtools-panel-footer]', '[data-nextjs-devtools-panel-footer]',
'[data-nextjs-error-overlay-footer]',
] ]
const Dialog: React.FC<DialogProps> = function Dialog({ const Dialog: React.FC<DialogProps> = function Dialog({
......
...@@ -7,7 +7,7 @@ export type ErrorOverlayFooterProps = { ...@@ -7,7 +7,7 @@ export type ErrorOverlayFooterProps = {
export function ErrorOverlayFooter({ errorCode }: ErrorOverlayFooterProps) { export function ErrorOverlayFooter({ errorCode }: ErrorOverlayFooterProps) {
return ( return (
<footer className="error-overlay-footer"> <footer data-nextjs-error-overlay-footer className="error-overlay-footer">
{errorCode ? ( {errorCode ? (
<ErrorFeedback className="error-feedback" errorCode={errorCode} /> <ErrorFeedback className="error-feedback" errorCode={errorCode} />
) : null} ) : null}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment