Auto-focus in filter model pop-up

Product: Web viewer

Product Version:11.4.0

Please give a brief summary of your issue:
I want to know how apryse is handling the auto-focus in filter model.

Please describe your issue and provide steps to reproduce it:
I want to know how apryse is handling the auto-focus in filter model.

Please provide a link to a minimal sample where the issue is reproducible:

1 Like

Hello, I’m AiRon, an automated tech support bot :robot:
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.



Here are some resources that might help you:


Hopefully, this helps you solve your problem while you wait for a human to get back to you.

1 Like

Hello Rishu,

Thank you for contacting Apryse forums.

What aspect of the filter modal do you notice there is auto-focus?

Best Regards,
Darian

1 Like

Like I have use color filter. Next time when user open the filter, color section will open default.

1 Like

Hello Rishu,

Thank you for the response.

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:

Best Regards,
Darian

1 Like