             @state.selected
 
     hide: ->
+        console.log "In hide..."
         @refs.calendar.hide()
 
     render: ->

        @setState { maxDate: date }

    onSelect: (day)->
        this.setState { selected: day }
        this.hide()

        if this.props.onSelect
            this.props.onSelect(day)

            eventObject.target.value = day
            @props.onChange(eventObject)


    onChange: (view)->
        console.log "DatePicker onChange view: #{view}"
        @setState
            #selected: DateUtilities.clone view
            view: DateUtilities.clone view
        @selectDate DateUtilities.clone view

    show: ->
        trigger = this.refs.trigger
