mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 19:01:39 -04:00
The themed Button forwards its ref straight to SButton, a class component, so the ref resolves to the class instance instead of the DOM node. Semantic UI's Modal/Popup Portal calls node.contains(...) on the trigger's ref during handleDocumentClick, which throws on a non-DOM value. This crashed the Control page whenever a Service Logs (or QR / download-error) modal was open and the document was clicked. Wrap SButton in Ref (findDOMNode) so a forwarded ref always resolves to the underlying <button> element, fixing every Modal/Popup that uses a themed Button as its trigger. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| api | ||
| components | ||
| contexts | ||
| hooks | ||
| types | ||
| api.js | ||
| App.css | ||
| App.js | ||
| DashboardPage.js | ||
| DashboardPage.test.js | ||
| Events.js | ||
| index.css | ||
| index.js | ||
| logo.svg | ||
| reportWebVitals.js | ||
| setupTests.js | ||
| Tags.cy.js | ||
| Tags.js | ||
| test-utils.js | ||