Skip to content

Commit

Permalink
feat(DnD): support to/from allDay events in demos
Browse files Browse the repository at this point in the history
  • Loading branch information
ehahn9 committed Mar 3, 2021
1 parent 7c4e16d commit b067ad0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/demos/dnd.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class Dnd extends React.Component {

const nextEvents = events.map(existingEvent => {
return existingEvent.id == event.id
? { ...existingEvent, start, end }
? { ...existingEvent, start, end, allDay }
: existingEvent
})

Expand All @@ -82,7 +82,7 @@ class Dnd extends React.Component {
//alert(`${event.title} was resized to ${start}-${end}`)
}

newEvent(event) {
newEvent(_event) {
// let idList = this.state.events.map(a => a.id)
// let newId = Math.max(...idList) + 1
// let hour = {
Expand Down

0 comments on commit b067ad0

Please sign in to comment.