Remove console.log
Focus the cursor to the box to be edited.. but only after a 20 ms delay to give the dom time to update first.