by qianjun;fix dropdown bug;add onInit callback