Since pointer-events blocks interactive events (click, hover, mouseenter, etc.), it will be accessible only with javascript (for example, with focus).
This may not be the best solution, but I think in your case?
(function($) { var focus = false; $(document).on('click', function(e) { console.log(focus); e.preventDefault(); if (focus) { focus = false; $('.cl1').trigger('blur'); } else { focus = true; $('.cl1').focus(); } }); })(jQuery);
fiddle with this working solution: https://jsfiddle.net/cob02bpv/1/
Edit: you can check which item was clicked, only the items below it will be complex.
If this is not a solution, the only thing would be to calculate the coordinates from the input window and check where the click event was click . But still, you will have problems with your items in the input field.
source share