Card type icon is still shown after input is cleared.
This is because the overridden validate method does not clear it when the value is empty and required is false.
Steps to reproduce
Type a valid number (4111 1111 1111 1111)
Visa icon appears
Clear card number in one action (select all + delete)
Description
Card type icon is still shown after input is cleared. This is because the overridden
validate
method does not clear it when the value is empty and required is false.Steps to reproduce