-
-
Notifications
You must be signed in to change notification settings - Fork 183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Js dom task #57
Js dom task #57
Conversation
@zonzujiro please review |
|
||
asideList.addEventListener('click', function(event) { | ||
const listTarget = event.target; | ||
if (listTarget.tagName != 'LI') return; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure why you need this check, TBH. What if I will click on the child of the list item?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added it because I can accidentally click on asideList itself which will cause error. Fixed
Please, resolve outdated conversations |
Js dom task
Demo |
Code base
The code is submitted in a dedicated feature branch.
Only code files are submitted.
Please, review.