delay resolve() instead of manually clearing edit div
delay resolve() instead of manually clearing edit div

  in finance legend item edit test case.

plotly/plotly.js,iongroup/plotly.js,asolagmbh/plotly.js,iongroup/plotly.js,plotly/plotly.js,etpinard/plotly.js,plotly/plotly.js,iongroup/plotly.js,aburato/plotly.js,plotly/plotly.js,aburato/plotly.js,asolagmbh/plotly.js,asolagmbh/plotly.js,etpinard/plotly.js,etpinard/plotly.js