Jack Deadman
2016-08-31 e95ba6ae225b352e84dbb594de63558f2f53bd9b
Add key to dayPart
1 files modified
2 ■■■ changed files
src/TimeView.js 2 ●●● patch | view | raw | blame | history
src/TimeView.js
@@ -57,7 +57,7 @@
        return '';
    },
    renderDayPart: function() {
        return DOM.div({ className: 'rdtCounter'}, [
        return DOM.div({ className: 'rdtCounter', key: 'dayPart'}, [
            DOM.span({ key:'up', className: 'rdtBtn', onMouseDown: this.onStartClicking( 'toggleDayPart', 'hours') }, '▲' ),
            DOM.div({ key: this.state.daypart, className: 'rdtCount'}, this.state.daypart ),
            DOM.span({ key:'do', className: 'rdtBtn', onMouseDown: this.onStartClicking( 'toggleDayPart', 'hours') }, '▼' )