Firstly, thanks so much for creating this - it's truly awesome.
I have a use case where we are detecting whether the user has selected a list value vs. free text input and if it's not from the list it triggers a challenge model form to get the user to answer a few more questions.
We are using a combination of:
onInvalidateSelection: function () { $('#inst_locale').val(""); $('#inst_id').val(""); unset_institution_image(); }
and
.blur(function() { setTimeout(institution_challenge, 300); // institution_challenge function calls the modal });
This works really well, and the modal is loading on blur, however I am a stuck trying to return the focus back to the autocomplete after they have exited the bootstrap modal.
We have a listener for when the user exits the modal.
However after the modal button is clicked, it seems to disable the autocomplete input completely and you can't even click in the input as if it is exhibiting disabled behaviour. Any help greatly appreciated.
Firstly, thanks so much for creating this - it's truly awesome.
I have a use case where we are detecting whether the user has selected a list value vs. free text input and if it's not from the list it triggers a challenge model form to get the user to answer a few more questions.
We are using a combination of:
onInvalidateSelection: function () { $('#inst_locale').val(""); $('#inst_id').val(""); unset_institution_image(); }
and
.blur(function() { setTimeout(institution_challenge, 300); // institution_challenge function calls the modal });
This works really well, and the modal is loading on blur, however I am a stuck trying to return the focus back to the autocomplete after they have exited the bootstrap modal.
We have a listener for when the user exits the modal.
$('.inst-challenge-revert').click(function(){ $('#autocomplete-id').focus(); });
However after the modal button is clicked, it seems to disable the autocomplete input completely and you can't even click in the input as if it is exhibiting disabled behaviour. Any help greatly appreciated.
Thanks