Open mFlaifel opened 3 years ago
focusout
exchangeFrom.addEventListener('focusout', () => { if (exchangeFrom.value) { GenericXHR(`https://restcountries.eu/rest/v2/name/${exchangeFrom.value}`,countryFunc1) } });
focusout
from the input field => send an unnecessary request. https://github.com/GSG-G9/Currency-Xchange/blob/89b2dc7addb7158068585228a7e65002aaf76b58/js/dom.js#L35-L38