mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 10:20:08 +00:00
minor tweak...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
69aafbf131
commit
9c9962c21a
@ -3808,8 +3808,8 @@ var HTMLBrowserPrototype = {
|
|||||||
// ...how do we collapse/expand a disabled root?
|
// ...how do we collapse/expand a disabled root?
|
||||||
// ...what do we focus when toggleing disabled?
|
// ...what do we focus when toggleing disabled?
|
||||||
// XXX handle .options.focusDisabled correctly...
|
// XXX handle .options.focusDisabled correctly...
|
||||||
// - tabindex
|
// - tabindex -- DONE
|
||||||
// - ...
|
// - ???
|
||||||
renderItem: function(item, i, context){
|
renderItem: function(item, i, context){
|
||||||
var that = this
|
var that = this
|
||||||
var options = context.options || this.options || {}
|
var options = context.options || this.options || {}
|
||||||
@ -3868,7 +3868,7 @@ var HTMLBrowserPrototype = {
|
|||||||
return !!item[cls] })))
|
return !!item[cls] })))
|
||||||
|
|
||||||
// attrs...
|
// attrs...
|
||||||
item.disabled
|
;(item.disabled && !options.focusDisabled)
|
||||||
|| elem.setAttribute('tabindex', '0')
|
|| elem.setAttribute('tabindex', '0')
|
||||||
Object.entries(item.attrs || {})
|
Object.entries(item.attrs || {})
|
||||||
// shorthand attrs...
|
// shorthand attrs...
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user