Closed james-allan closed 3 months ago
I didn't realise the fields I changed in this PR were that off. I guess everything else being out of line made that harder to see.
I've pushed a few commits that fix those alignment issues.
Weekly products only have 1 sync element
Yearly products only have 2 sync elements
Hey Matt. I think I've fixed all those issues now. 😅
Yearly (2 sync fields) | Weekly (1 sync field) |
---|---|
Yearly (2 sync fields) | Weekly (1 sync field) |
---|---|
Fixes https://github.com/woocommerce/woocommerce-subscriptions/issues/4588
Description
In https://github.com/Automattic/woocommerce-subscriptions-core/pull/508, the number input elements that enable store admin to select the day of the month for which yearly subscription products are synced to was changed from a
<input type="number" ... >
to a select2 (by giving it thewc-enhanced-select
class. This essentially broke these elements because attempting to turn input elements into a select2 powered element didn't work - ie they had no options.This PR fixes this by turning these elements into true select2 elements via
<select>
and<option>
elements.How to test this PR
Simple Subscription.
trunk
you'll notice the dropdown is empty.Variable Subscription
trunk
you'll notice the date selector is a number input.Product impact