Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Focus issue - when you click tab instead of 'enter' #69

Open
vertexbx opened this issue Apr 21, 2021 · 0 comments
Open

Focus issue - when you click tab instead of 'enter' #69

vertexbx opened this issue Apr 21, 2021 · 0 comments

Comments

@vertexbx
Copy link

image

Issue: you could only use 'enter' when you wanted to go the the next 'input field' OR if you were clicking 'tab' the pop-up window of this widget was re-opening or closing. Therefore you couldn't go to the next input field with TAB. The code below solves this issue.

@file : AutoCompleteForMendix.js
@Version : 6.0.0
@author : Iain Lindsay
@Date : 2019-05-15
@copyright : AuraQ Limited 2020
@license : Apache V2

Line 306 - we added code to line 306

.on("select2:closing",function(e){
setTimeout(()=>self._$combo.select2('focus'),50);
});

This so that the ‘tab’ key can be used and if the ‘focus’ is on true in the widget, this will not close & re-open the widget but just continues to the the next input field in Mendix

Hopefully this can help also other users. Thanks for you widget :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant