Merge pull request #542 from NicoDos/issue#525
Remove onTouchStart attribute when used together with onMouseDown to Fix Issue #525
| | |
| | | } |
| | | } |
| | | return React.createElement('div', { key: type, className: 'rdtCounter' }, [ |
| | | React.createElement('span', { key: 'up', className: 'rdtBtn', onTouchStart: this.onStartClicking('increase', type), onMouseDown: this.onStartClicking( 'increase', type ), onContextMenu: this.disableContextMenu }, '▲' ), |
| | | React.createElement('span', { key: 'up', className: 'rdtBtn', onMouseDown: this.onStartClicking( 'increase', type ), onContextMenu: this.disableContextMenu }, '▲' ), |
| | | React.createElement('div', { key: 'c', className: 'rdtCount' }, value ), |
| | | React.createElement('span', { key: 'do', className: 'rdtBtn', onTouchStart: this.onStartClicking('decrease', type), onMouseDown: this.onStartClicking( 'decrease', type ), onContextMenu: this.disableContextMenu }, '▼' ) |
| | | React.createElement('span', { key: 'do', className: 'rdtBtn', onMouseDown: this.onStartClicking( 'decrease', type ), onContextMenu: this.disableContextMenu }, '▼' ) |
| | | ]); |
| | | } |
| | | return ''; |
| | |
| | | |
| | | renderDayPart: function() { |
| | | return React.createElement('div', { key: 'dayPart', className: 'rdtCounter' }, [ |
| | | React.createElement('span', { key: 'up', className: 'rdtBtn', onTouchStart: this.onStartClicking('toggleDayPart', 'hours'), onMouseDown: this.onStartClicking( 'toggleDayPart', 'hours'), onContextMenu: this.disableContextMenu }, '▲' ), |
| | | React.createElement('span', { key: 'up', className: 'rdtBtn', onMouseDown: this.onStartClicking( 'toggleDayPart', 'hours'), onContextMenu: this.disableContextMenu }, '▲' ), |
| | | React.createElement('div', { key: this.state.daypart, className: 'rdtCount' }, this.state.daypart ), |
| | | React.createElement('span', { key: 'do', className: 'rdtBtn', onTouchStart: this.onStartClicking('toggleDayPart', 'hours'), onMouseDown: this.onStartClicking( 'toggleDayPart', 'hours'), onContextMenu: this.disableContextMenu }, '▼' ) |
| | | React.createElement('span', { key: 'do', className: 'rdtBtn', onMouseDown: this.onStartClicking( 'toggleDayPart', 'hours'), onContextMenu: this.disableContextMenu }, '▼' ) |
| | | ]); |
| | | }, |
| | | |
| | |
| | | <span |
| | | className="rdtBtn" |
| | | onContextMenu={[Function]} |
| | | onMouseDown={[Function]} |
| | | onTouchStart={[Function]}> |
| | | onMouseDown={[Function]}> |
| | | ▲ |
| | | </span> |
| | | <div |
| | |
| | | <span |
| | | className="rdtBtn" |
| | | onContextMenu={[Function]} |
| | | onMouseDown={[Function]} |
| | | onTouchStart={[Function]}> |
| | | onMouseDown={[Function]}> |
| | | ▼ |
| | | </span> |
| | | </div> |
| | |
| | | <span |
| | | className="rdtBtn" |
| | | onContextMenu={[Function]} |
| | | onMouseDown={[Function]} |
| | | onTouchStart={[Function]}> |
| | | onMouseDown={[Function]}> |
| | | ▲ |
| | | </span> |
| | | <div |
| | |
| | | <span |
| | | className="rdtBtn" |
| | | onContextMenu={[Function]} |
| | | onMouseDown={[Function]} |
| | | onTouchStart={[Function]}> |
| | | onMouseDown={[Function]}> |
| | | ▼ |
| | | </span> |
| | | </div> |
| | |
| | | <span |
| | | className="rdtBtn" |
| | | onContextMenu={[Function]} |
| | | onMouseDown={[Function]} |
| | | onTouchStart={[Function]}> |
| | | onMouseDown={[Function]}> |
| | | ▲ |
| | | </span> |
| | | <div |
| | |
| | | <span |
| | | className="rdtBtn" |
| | | onContextMenu={[Function]} |
| | | onMouseDown={[Function]} |
| | | onTouchStart={[Function]}> |
| | | onMouseDown={[Function]}> |
| | | ▼ |
| | | </span> |
| | | </div> |
| | |
| | | <span |
| | | className="rdtBtn" |
| | | onContextMenu={[Function]} |
| | | onMouseDown={[Function]} |
| | | onTouchStart={[Function]}> |
| | | onMouseDown={[Function]}> |
| | | ▲ |
| | | </span> |
| | | <div |
| | |
| | | <span |
| | | className="rdtBtn" |
| | | onContextMenu={[Function]} |
| | | onMouseDown={[Function]} |
| | | onTouchStart={[Function]}> |
| | | onMouseDown={[Function]}> |
| | | ▼ |
| | | </span> |
| | | </div> |
| | |
| | | <span |
| | | className="rdtBtn" |
| | | onContextMenu={[Function]} |
| | | onMouseDown={[Function]} |
| | | onTouchStart={[Function]}> |
| | | onMouseDown={[Function]}> |
| | | ▲ |
| | | </span> |
| | | <div |
| | |
| | | <span |
| | | className="rdtBtn" |
| | | onContextMenu={[Function]} |
| | | onMouseDown={[Function]} |
| | | onTouchStart={[Function]}> |
| | | onMouseDown={[Function]}> |
| | | ▼ |
| | | </span> |
| | | </div> |
| | |
| | | <span |
| | | className="rdtBtn" |
| | | onContextMenu={[Function]} |
| | | onMouseDown={[Function]} |
| | | onTouchStart={[Function]}> |
| | | onMouseDown={[Function]}> |
| | | ▲ |
| | | </span> |
| | | <div |
| | |
| | | <span |
| | | className="rdtBtn" |
| | | onContextMenu={[Function]} |
| | | onMouseDown={[Function]} |
| | | onTouchStart={[Function]}> |
| | | onMouseDown={[Function]}> |
| | | ▼ |
| | | </span> |
| | | </div> |