You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, the attribute value from the option elements is removed. The same doesn't happen with the input field.
I confirmed that the value attribute is present when the response comes from the backend. So something happens on the frontend (maybe a sanitization?)
If I change the hook from render_block_woocommerce/checkout-order-summary-block to render_block_woocommerce/checkout, it works as expected (the value attribute is not removed)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm trying to add some fields "after" the checkout-order-summary-block with the following code snippet:
The output:
However, the attribute
value
from the option elements is removed. The same doesn't happen with the input field.I confirmed that the
value
attribute is present when the response comes from the backend. So something happens on the frontend (maybe a sanitization?)If I change the hook from
render_block_woocommerce/checkout-order-summary-block
torender_block_woocommerce/checkout
, it works as expected (thevalue
attribute is not removed)Is this the expected behaviour? Is the approach I used correct?
Beta Was this translation helpful? Give feedback.
All reactions