Prevent double change issue on enter key