470ecd0e7d
* Create ValidationContext * Add ValidationProvider to the product editor * Add new validation to the name block * Add new validation to the Save button * Store validations within a useRef instead of useState to improves re-renders * Create find first visible and invalid element function * Add focus first invalid element feat when submitting * Integrate autofocus with name block * Migrate sale-price block to the new validation system * Add changelog file * Migrate regular-price block to the new validation system * Migrate schedule-sale block to the new validation system * Migrate inventory-quantity block to the new validation system * Migrate shipping-dimensions block to the new validation system * Remove old validation hook * Add validation to the save-draft button * Add validation to the preview button * Expose validation hooks to be used outside of the package * Make sure the product is in fact saved before calling the onPublishSuccess |
||
---|---|---|
.. | ||
js | ||
php |