sync value to inputValue