@@ -149,7 +149,10 @@ const addUser = (name = '') => {
const addInput = () => {
addUser('');
setTimeout(() => {
- setIptWidth(props.atUserList.length - 1);
+ let index = props.atUserList.length - 1;
+ setIptWidth(index);
+ let iptDom = document.getElementById('input'+index);
+ iptDom.focus();
})
}