data-clear fix

fixed data.clear to work on inputs
now sets values to null rather than an empty string