droppable only accepts valid div classes, and at the beginning of your drag, your grenn div does not have this class. The drag function adds it, but it's too late for the first drop, but it's still there, so subsequent dragdrops work.
Solution: make sure the green div has .valid before the first drag event
source
share