The keyboard disappears and reappears when I change the focus

0

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)
    
asked by Matias 03.10.2017 в 19:15
source

0 answers