Skip to content

Commit

Permalink
Default touchToDeleteSelection to feature-detection
Browse files Browse the repository at this point in the history
This will allow us to publish a patch version which is backwards
compatible.
  • Loading branch information
trotzig committed Mar 7, 2018
1 parent c98dee1 commit 02fadf3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/AvailableTimes.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -345,5 +345,5 @@ AvailableTimes.propTypes = {
AvailableTimes.defaultProps = {
timeZone: momentTimezone.tz.guess(),
weekStartsOn: 'sunday',
touchToDeleteSelection: false,
touchToDeleteSelection: 'ontouchstart' in window,
};
1 change: 0 additions & 1 deletion src/test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@ class Test extends Component {
initialSelections={initialSelections}
onEventsRequested={this.handleEventsRequested}
recurring={recurring}
touchToDeleteSelection={'ontouchstart' in window}
/>
</div>
</div>
Expand Down

0 comments on commit 02fadf3

Please sign in to comment.