It doesn't make sense to say "no events were found" if there is no input. This can be confusing if a user clears their input and expects the tool to revert to its initial state.
buttonContainer.style.setProperty('opacity', 0);
tableBody.innerHTML = '';
+ // Input has been cleared, reset back to default state
+ if (textarea.value === '') {
+ return;
+ }
+
const events = getEvents(textarea.value);
const uniqueEvents = Array.from(new Set(events));
if (events.length === 0) {