fix a bug & update package

fix a bug for `repaint`
upate package.json
auto add/remove attribute for `disabled` state change