Trying to adapt custom input