After a legal doc is added, the user may dismiss the search modal in four ways:
Hitting ESC
Hitting the close X on the top right
Clicking anywhere outside of the modal
Clicking the gray "close" button inside the modal
All of these ultimately trigger the same "close" event on the <Modal> component.
In any of these cases, the user's newly-added document will not appear automatically in the TOC, and it could seem like the action did not work. The document will be present when the page is refreshed.
Ideally:
The added-legal-doc event will notify the upstream TOC component that it should refresh itself behind the modal as soon as the add is complete.
If that is not readily possible:
Modify the gray "close" button to read "Back to casebook" and have that button execute a full page refresh.
Follow-up to #1963
After a legal doc is added, the user may dismiss the search modal in four ways:
All of these ultimately trigger the same "close" event on the
<Modal>
component.In any of these cases, the user's newly-added document will not appear automatically in the TOC, and it could seem like the action did not work. The document will be present when the page is refreshed.
Ideally:
If that is not readily possible: