Text inside textbox widget is auto selecting and wiped off.

0
Hi, We are having a popup to edit name, when we open a popup the text inside the textbox box is auto selecting and without clicking out if user type anything existing text is getting wiped. Users need to click outside before editing the text. Any solution for this issue, to avoid text getting auto selected on opening popup.   
asked
1 answers
0

function openPopup() {

document.querySelector('.textboxClass').blur(); // Replace 'textboxClass' with the actual Class of your  textbox

}

setTimeout(openPopup,100);

 

you can write this code in html snippet inside javascript section and put this snippet in popup page.

 

May be this will help you.

answered