Revert "Merge pull request #822 from t3chguy/BaseDialog_restore_focus"
This reverts commitpull/21833/head0ac836919d, reversing changes made to7e07ffd55f.
							parent
							
								
									19dcd83aeb
								
							
						
					
					
						commit
						ff9c40472a
					
				| 
						 | 
				
			
			@ -47,16 +47,6 @@ export default React.createClass({
 | 
			
		|||
        children: React.PropTypes.node,
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    componentWillMount: function() {
 | 
			
		||||
        this.priorActiveElement = document.activeElement;
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    componentWillUnmount: function() {
 | 
			
		||||
        if (this.priorActiveElement !== null) {
 | 
			
		||||
            this.priorActiveElement.focus();
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _onKeyDown: function(e) {
 | 
			
		||||
        if (e.keyCode === KeyCode.ESCAPE) {
 | 
			
		||||
            e.stopPropagation();
 | 
			
		||||
| 
						 | 
				
			
			@ -77,7 +67,7 @@ export default React.createClass({
 | 
			
		|||
 | 
			
		||||
    render: function() {
 | 
			
		||||
        const TintableSvg = sdk.getComponent("elements.TintableSvg");
 | 
			
		||||
 | 
			
		||||
                
 | 
			
		||||
        return (
 | 
			
		||||
            <div onKeyDown={this._onKeyDown} className={this.props.className}>
 | 
			
		||||
                <AccessibleButton onClick={this._onCancelClick}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue