I have a list and when I delete an item, using the click or tap event, I set the focus on the next item to the deleted item, looking for id and with the focus () function. Then the keyboard disappears and reappears. How can I make this not happen and the keyboard is on top?
so I change the focus
setTimeout(()=>{
let input =
document.getElementById(''+this.shoppingList.items[index]._id);
let i = input.getElementsByTagName('input')[0];
//console.log(input);
i.focus();
},1000)