TinyMCE insert contact popup: unwanted focus shift #3430
Labels
bug
Something isn't working
invalid
This doesn't seem right
needs-further-investigation
This issue needs some further research/investigation
prio: low
Not urgent, can be resolved in the distant future.
Describe the Bug
When opening the popup to insert a contact, the focus is moved to to the submit button instead of staying on the search field. This is bad user experience, since the user likely wants to search for a different term next – submitting does not make sense and is not allowed by the system.
Steps to Reproduce
Expected Behavior
The focus is still on the input field. The user can immediately type in another phrase to search for.
Actual Behavior
The focus is moved to the Submit button. The user probably doesn't notice and types in another phrase, only to find out they have to re-select the box and type it in again.
Additional Information
Should this prove difficult to solve properly with our loosely spit-glued together TinyMCE plugin + TomSelect, but are able to trigger a function the moment the focus shift happens, then as a workaround we might just check if we have a valid contact selection and if not, switch focus back to TomSelect
The text was updated successfully, but these errors were encountered: