metacatui
metacatui copied to clipboard
Stay on the same tab when the filter editor modal closes in the portal builder data page
When a user updates a custom search filter using the FilterEditorView, the entire FilterGroupsView re-renders and switches back to the first filter group tab:
https://user-images.githubusercontent.com/26600641/111370870-1fec3e00-866f-11eb-80ff-d06ff0b49b86.mov
If a user is editing a filter that is in the second or subsequent tab, the view should stay on that tab when the user closes the FilterEditorView modal. This will become more of an issue once we support adding and editing filter group tabs in the editor (#1685). For now it only applies to portal documents that have manually-created filter groups.