The code below is to press a button to show a text entry for user to type in and text to be saved to local storage when clicking elsewhere.
The text field appears but after I type something in it and click away, the text doesn't get saved on local storage.
Can you try this...
function saveEntry(event) {
//...
//...
localStorage.setItem(itemKey, event.target.value);
}