Title: [User Feedback] Can't scroll after submitting or cancelling using createForm · Issue #13046 · getsentry/sentry-javascript · GitHub
Open Graph Title: [User Feedback] Can't scroll after submitting or cancelling using createForm · Issue #13046 · getsentry/sentry-javascript
X Title: [User Feedback] Can't scroll after submitting or cancelling using createForm · Issue #13046 · getsentry/sentry-javascript
Description: Description This appears to be an issue specifically with the createForm method, rather than the attachTo method. For attachTo, the form is constructed with overridden values for onFormClose and onFormSubmitted passed which trigger reset...
Open Graph Description: Description This appears to be an issue specifically with the createForm method, rather than the attachTo method. For attachTo, the form is constructed with overridden values for onFormClose and on...
X Description: Description This appears to be an issue specifically with the createForm method, rather than the attachTo method. For attachTo, the form is constructed with overridden values for onFormClose and on...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/13046
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[User Feedback] Can't scroll after submitting or cancelling using createForm","articleBody":"### Description\n\nThis appears to be an issue specifically with the createForm method, rather than the attachTo method. For attachTo, the form is constructed with overridden values for onFormClose and onFormSubmitted passed which trigger resetting the body overflow, but when using createForm / appendToDom, no overridden values are passed for close / success (see [integration.ts:315](https://github.com/getsentry/sentry-javascript/blob/c48d87cafcd95f2404161a68f5071585085e6bf7/packages/feedback/src/core/integration.ts#L315) compared to [integration.ts:232](https://github.com/getsentry/sentry-javascript/blob/c48d87cafcd95f2404161a68f5071585085e6bf7/packages/feedback/src/core/integration.ts#L232)), so onFormClose and therefore [dialog.close()](https://github.com/getsentry/sentry-javascript/blob/c48d87cafcd95f2404161a68f5071585085e6bf7/packages/feedback/src/modal/integration.tsx#L57) are never called and style=\"overflow: hidden;\" is never removed.\n\nI'm wondering if the real issue is that the default options [_options](https://github.com/getsentry/sentry-javascript/blob/c48d87cafcd95f2404161a68f5071585085e6bf7/packages/feedback/src/core/integration.ts#L110) specify onFormClose and onFormSubmitted but these values appear to be undefined rather than a default value?\n\nSwitching to attachTo resolved the issue, but I believe this should be resolved in createForm as well.\n\nRelated to https://github.com/getsentry/sentry-javascript/issues/12496","author":{"url":"https://github.com/c298lee","@type":"Person","name":"c298lee"},"datePublished":"2024-07-24T22:25:41Z","url":"https://github.com/getsentry/sentry-javascript/issues/13046"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:1f839889-02d7-0aec-973e-5e0a5601dab7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9CB2:1DA36E:20270CA:29C29AA:6B040A71 |
| html-safe-nonce | c5d2f2ded540a1b36c15c919d8b2a5d30e3845d8a64060f1c123902a75a5ad5e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5Q0IyOjFEQTM2RToyMDI3MENBOjI5QzI5QUE6NkIwNDBBNzEiLCJ2aXNpdG9yX2lkIjoiNDAzODk1MjM1ODkzNDQ4MTUyMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | afbbfde630da300444b27c051b7b1ed6e6c40ad369e8f3d3dbf1b1aaa4b0c7f5 |
| hovercard-subject-tag | issue:2428569789 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-javascript/13046/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c2dbc45325813a14285c6f24d1069931bc480dbdb30b556e18e780f0032b5808/getsentry/sentry-javascript/issues/13046 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c2dbc45325813a14285c6f24d1069931bc480dbdb30b556e18e780f0032b5808/getsentry/sentry-javascript/issues/13046 |
| og:image:alt | Description This appears to be an issue specifically with the createForm method, rather than the attachTo method. For attachTo, the form is constructed with overridden values for onFormClose and on... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | c298lee |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3328572 |
| octolytics-dimension-repository_nwo | getsentry/sentry-javascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3328572 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-javascript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width