tweaking...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2019-02-10 20:06:36 +03:00
parent afd63c1d49
commit 0414b40ff6

View File

@ -631,7 +631,6 @@ var BrowserPrototype = {
.attr(Object.assign({}, .attr(Object.assign({},
item.attrs || {}, item.attrs || {},
{ {
tabindex: '0',
value: JSON.stringify(item.value || item), value: JSON.stringify(item.value || item),
})) }))
// value... // value...
@ -645,10 +644,8 @@ var BrowserPrototype = {
// XXX things to work out: // XXX things to work out:
// - order -- should be ltr and not rtl (???) // - order -- should be ltr and not rtl (???)
.append($('<span class="button"/>') .append($('<span class="button"/>')
.attr('tabindex', '0')
.html('&square;')) .html('&square;'))
.append($('<span class="button"/>') .append($('<span class="button"/>')
.attr('tabindex', '0')
.html('&#9675;')) .html('&#9675;'))
// events... // events...
.run(function(){ .run(function(){
@ -663,6 +660,11 @@ var BrowserPrototype = {
.forEach(function([evt, handler]){ .forEach(function([evt, handler]){
handler handler
&& e.on(evt, handler) }) }) && e.on(evt, handler) }) })
// setup tabindex on non-disabled items...
.run(function(){
item.disabled
|| $([this[0], ...this.find('.button')]).attr('tabindex', '0') })
// XXX stub... // XXX stub...
return elem[0] return elem[0]
/*/ /*/