fixbug: end editing before actionBarDoneButtonTapHandler.