recalculateOnType uses input event

this may break compatibility with IE