switchery icon indicating copy to clipboard operation
switchery copied to clipboard

Allow checkbox to be selected via tab

Open Elrinth opened this issue 9 years ago • 1 comments

I guess the checkbox needs to be hidden via some other way. and switchery need to recognize changes of the checkbox from elsewhere.

If I'm tab-selecting on a desktop and want to select the next item after having filled in a text-input before for example, then it will skip the switchery element and go to the next possible after.

This is where I want it to land on the switchery which I could change via the space bar. Oh and btw, I love this plugin! <3

Elrinth avatar Oct 23 '15 22:10 Elrinth

on line 1637 (the hide method) change the code to: this.element.style.position = 'absolute'; this.element.style.left = '-9999px';

and you can "TAB" to the switchery checkbox.

Elrinth avatar Nov 01 '15 20:11 Elrinth