First of all thank you so much for this amazing project. However, there are couple of bugs that need to be fixed. (1.) If you press "Enter" without writing anything in the input box then a half sized empty todo box appears which shouldn't. (2.) Even if you fix this bug there's still more to do as when you press spacebar (once or more than once) and press "Enter" then also that same half sized empty todo box appears. These are the changes that must be done in the function code: item.addEventListener( "keyup", function (event) { if (event.key == "Enter") { let cleanlist = this.value.trim(); if (cleanlist.length > 0) { addToDo(cleanlist) this.value = ""; } else { return; } } } )
PLEASE CORRECT ME IF I AM WRONG.... This is just my point of view that after attending this lecture that i have learnt: if we want to CRUD operation on client side : --------Topics to be covered------- DOM. Event listner. which further if we move to react the UI update is all taken control by react HOOKS..
nice, love you from Pakistan.
Thank you sir👍
Bhagirath sir,
Love from Manav aashram Colony ❤️
I'm your big big big fan 🙏🏼
First of all thank you so much for this amazing project. However, there are couple of bugs that need to be fixed.
(1.) If you press "Enter" without writing anything in the input box then a half sized empty todo box appears which shouldn't.
(2.) Even if you fix this bug there's still more to do as when you press spacebar (once or more than once) and press "Enter" then also that same half sized empty todo box appears.
These are the changes that must be done in the function code:
item.addEventListener(
"keyup",
function (event) {
if (event.key == "Enter") {
let cleanlist = this.value.trim();
if (cleanlist.length > 0) {
addToDo(cleanlist)
this.value = "";
} else {
return;
}
}
}
)
Even this may help!!!
item.addEventListener(
"keyup",
function(event) {
if (event.key === "Enter") {
const inputValue = this.value.trim(); // Remove leading and trailing spaces
if (inputValue !== "") {
addToDo(inputValue);
this.value = "";
}
}
}
)
Outstanding
Didn't think I'd watch a 20min video, went by so fast!
Nice job! 🔥
Thank you sir very nice and net and clear explaination😊
Superb Project sir, please bring more advanced JS projects including Twilio,much needed.
PLEASE CORRECT ME IF I AM WRONG....
This is just my point of view that after attending this lecture that i have learnt:
if we want to CRUD operation on client side :
--------Topics to be covered-------
DOM.
Event listner.
which further if we move to react the UI update is all taken control by react HOOKS..
Great , Thanks
JS 10:22
nice
Item jayda houa toh overlap kar raha hai
awesome
style is not working on 'delete icon'
Sir can i take web development course frim your web
Python me vi todo list banana sikao na vai😁
How to add a remainder in this code Can anyone help me to add a remainder to the Task in this code
sir line through hoo hi nahi raha please reply
not working i
My code is note working
Humne HTML me i-tag ke andar fas fa-time kyu diya samajh nahi aaya koi samajha skta hai
Font icons ka Lia use Karta hn
Please bro please how to make Pubg hack 🧐🧐
satire?
🤣🤣
Sir agar input khaali hai phir bhi li add hora wo bhi khaali
Is problem ko bataaiye na
use if else statement where checking that the enter key is pressed and add another condition ( first condition && items.value !== "")
@@IfhamTechCoverage Helpfu! But If we press just space bar it is again giving us half empty box.