Hello, I’m AiRon, an automated tech support bot While you wait for one of our customer support representatives, I can help you with your question.
The auto-focus feature in a modal, such as a filter model pop-up, typically involves setting focus to a specific input element when the modal is opened. In Apryse WebViewer, this can be managed using JavaScript by selecting the desired input element and calling its focus() method when the modal becomes visible.
Some things you can try:
Use JavaScript to select the input element in the modal you want to focus on.
Attach an event listener to the modal’s open event to trigger the focus() method on the input element.
Ensure the modal’s DOM elements are fully loaded before setting focus to avoid issues.
Check if there are any WebViewer UI customizations or event hooks that might affect modal behavior.
The component remembers the last selected tab (like the color tab) via Redux, so when you reopen the modal, it automatically displays the same tab. Our UI publicly available, so you can take a look at the component below: