function setValue also triggers 'keyup' event