mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-11-03 11:44:17 -05:00
When mobile users open the quick-add offcanvas and tap 'New saved seed' or 'New harvest', the click was intercepted to launch a React modal without closing the offcanvas. Bootstrap's active FocusTrap on the offcanvas intercepted subsequent focusin events on document and pulled focus back to the offcanvas, immediately blurring input fields and preventing Android's virtual keyboard from showing. Dismiss any open offcanvases when record dialog links are clicked and when Modal mounts, and restore focus to the offcanvas trigger button when the modal closes. Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com> Co-authored-by: Brenda Wallace <brenda@wallace.net.nz>