Skip to content
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

Drag drop #3

Merged
merged 4 commits into from
Jul 22, 2021
Merged

Drag drop #3

merged 4 commits into from
Jul 22, 2021

Conversation

er-contreras
Copy link
Owner

  • Add 2 new JavaScript files and import them as modules:
  • one will contain methods related to drag / drop and sorting functionality.
  • the other will contain methods related to the status updates (completed: true / false).
  • Add event listeners to list items (dragstart, dragover, drop) and to checkbox (change).
  • Update items object's values for index and completed keys upon user actions.
  • Store the updated array of items in local storage, so the user gets the correct list values after the page reloads.

Copy link

@henatan99 henatan99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @eri8-9 ,

Your project is complete! There is nothing else to say other than... it's time to merge it :shipit:
Congratulations! 🎉

Cheers and Happy coding!👏👏👏

Feel free to leave any questions or comments in the PR thread if something is not 100% clear.


As described in the Code reviews limits policy you have a limited number of reviews per project (check the exact number in your Dashboard). If you think that the code review was not fair, you can request a second opinion using this form.

dropZone.setAttribute('draggable', 'true');
inputlabel.setAttribute('for', `inputCheck-${i}`);
inputCheck.setAttribute('type', 'checkbox');
if (window.localStorage.length == null || window.localStorage.length === 0) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Very smart to check if the local storage is cleared before rendering the list elements, 👍 . But you should mention it in your readme or PR summary as it may not be noticed easily by others and it can be mistakenly related to some other issues that the lists are not rendering. Anyways, you did a great job.

@er-contreras er-contreras merged commit 74cc328 into main Jul 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants