Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Gallery block / media-placeholder - Preserve changes made while uploa…
…d in progress. (#19134) * added optional prop to pass by reference instead of value * currentValue updated on adding/removing * comment update * fixed multiple upload bug * removed stuff for trying to keep loaders that werent part of the upload group * updates comments and naming * updated galleryValue to fallback to empty array * renamed values to be more semantic * removed dynamicAlteration prop * refactored to compare last pass of newMedia * added comments, changed variable name * simplified setting lastMediaPassed * compare via includes instead * added id check as first priority in filter * edited comments * rebased * changed to soft equal for int/string ID comparison * added unchanging reference for image array * re-added fallback value for currentMedia, fixed linter == problem * updated comment * re-added addToGallery check, forced 'true' for our gallery * refactored to use a getValue instead * updated comment * Remove getValue and use a reference to this.props.value * comment update Co-authored-by: Jorge <[email protected]>
- Loading branch information