From 6786e345a8b30fbec3bf9cdec2c1af4aa3484805 Mon Sep 17 00:00:00 2001 From: Roland Date: Mon, 20 Jul 2026 11:38:17 -0600 Subject: [PATCH] Fix "node.contains is not a function" crash on Modal/Popup triggers 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