minor tweak...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2019-06-25 17:46:53 +03:00
parent 69aafbf131
commit 9c9962c21a

View File

@ -3808,8 +3808,8 @@ var HTMLBrowserPrototype = {
// ...how do we collapse/expand a disabled root?
// ...what do we focus when toggleing disabled?
// XXX handle .options.focusDisabled correctly...
// - tabindex
// - ...
// - tabindex -- DONE
// - ???
renderItem: function(item, i, context){
var that = this
var options = context.options || this.options || {}
@ -3868,7 +3868,7 @@ var HTMLBrowserPrototype = {
return !!item[cls] })))
// attrs...
item.disabled
;(item.disabled && !options.focusDisabled)
|| elem.setAttribute('tabindex', '0')
Object.entries(item.attrs || {})
// shorthand attrs...