by qianjun;fix dropdown bug;add onInit callback

by qianjun;fix dropdown bug;add onInit callback