Changeset 12706

Show
Ignore:
Timestamp:
02/26/08 04:49:19 (11 months ago)
Author:
becky
Message:

refs #5934 if in FF and first focusable item in a dialog is an input type=file make the dialog domNode the first focusable item. Will close ticket when I complete update of documentation for dialog in book

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dijit/trunk/Dialog.js

    r12449 r12706  
    209209                                focusItem = dijit.getLastInTabbingOrder(this.domNode); 
    210210                                this._lastFocusItem = focusItem ? focusItem : this._firstFocusItem; 
     211                                if(dojo.isMoz && this._firstFocusItem.tagName.toLowerCase() == "input" && dojo.attr(this._firstFocusItem, "type").toLowerCase() == "file"){ 
     212                                        //FF doesn't behave well when first element is input type=file, set first focusable to dialog container 
     213                                        dojo.attr(this.domNode, "tabindex", "0"); 
     214                                        this._firstFocusItem = this.domNode; 
     215                                        } 
    211216                        } 
    212217