Input field is active after new item created

This commit is contained in:
benguozakinci@gmail.com
2021-08-03 13:07:09 +03:00
parent db8507b856
commit 7a4d28d755
4 changed files with 53 additions and 71 deletions

View File

@ -15,14 +15,12 @@ function getQueryVariable(variable) {
return(false);
}
function promiseTimeout(time) {
return new Promise(function(resolve,reject) {
setTimeout(function(){
resolve(time);
}, time);
});
};
//This function wraps setTimeout function in a promise in order to display dom manipulations on root components asynchronously & fast
const setPromiseTimeout = time =>
new Promise(resolve =>
setTimeout(() =>
resolve(time)
, time)
);
export {getQueryVariable, promiseTimeout}
export {getQueryVariable, setPromiseTimeout}