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

Add disabled state to Quick Add Bulk #3391

Merged
merged 2 commits into from
Apr 3, 2024
Merged

Conversation

sofiamatulis
Copy link
Contributor

@sofiamatulis sofiamatulis commented Apr 3, 2024

PR Summary:

Ensure we are blocking the input from being edited like in QOL (https://screenshot.click/03-33-2875m-wdmj0.mp4) when the API call is being made.

Why are these changes introduced?

Ensure the buyer cant edit the input as an API call is being made

Before:

Screen.Recording.2024-04-02.at.9.20.29.PM.mov

After:

https://screenshot.click/03-40-re1d5-f31xd.mp4
https://screenshot.click/03-18-pgft9-pgzme.mp4

Testing steps/scenarios

  • Go to the homepage (quick add bulk enabled in the collection)
  • Test on a product with one variant
  • Add items quickly and see if the number changes

Demo links

Checklist

@@ -99,7 +99,7 @@ if (!customElements.get('quick-add-bulk')) {
updateCart(event) {
this.lastActiveInputId = event.target.getAttribute('data-index');
this.quantity = this.querySelector('quantity-input')
// this.quantity.classList.add('loading');
Copy link
Member

Choose a reason for hiding this comment

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

🔥?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This seems to be an old comment 😅 So I am removing to clean it up as well

Copy link
Member

@dan-menard dan-menard left a comment

Choose a reason for hiding this comment

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

Good catch! Confirmed it's working the same as QoL.

@sofiamatulis sofiamatulis merged commit 1b34f48 into main Apr 3, 2024
2 of 5 checks passed
@sofiamatulis sofiamatulis deleted the disabled-state-quickbulk branch April 3, 2024 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants