79355419

Date: 2025-01-14 15:01:47
Score: 1
Natty:
Report link

I was searching for this, but didn't care about preserving the old value and this worked well enough for me (resetting the value to empty string):

const showList: EventHandler = (ev) => {
    const input = ev.target as HTMLInputElement;
    input.value = '';
};
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Mitch