         @setState(show: nextProps.show) if nextProps.show?
 
     _hide: ->
+        @context.viewport.modalProps.show = false
         @setState(show: false)
 
     hide: ->

        cls = _.classnames('lanes-dialog', @props.className, @context.uistate?.layout_size)

        <BS.Modal.Dialog className={cls} bsSize={@props.size} onHide={@_hide}>
            <BS.Modal.Header closeButton>
                <BS.Modal.Title>{@props.title}</BS.Modal.Title>
            </BS.Modal.Header>


        size:      React.PropTypes.string

    contextTypes:
        viewport: Lanes.PropTypes.State
        uistate:  Lanes.PropTypes.State

    getDefaultProps: ->
        size: 'large'
