Skip to content

Commit

Permalink
fix: pin-down react-sortablejs version
Browse files Browse the repository at this point in the history
  • Loading branch information
Soare-Robert-Daniel committed Apr 23, 2024
1 parent 45ad0ee commit 7be6da0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ const RepeaterComponent = ({ control }) => {

const updateValue = (newVal) => {
setValue(newVal);

// INFO: The version react-sortablejs higher than 6.0.3 will modify the original `value` array. This will add new keys (selected, chosen) which will make the value to be rejected by sanitize_callback in `sanitize_social_icons_repeater` function.
control.setting.set(JSON.stringify(newVal));
};

Expand Down
18 changes: 6 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"eslint-plugin-prettier": "^5.0.1",
"fuse.js": "^7.0.0",
"prop-types": "^15.7.2",
"react-sortablejs": "^6.0.0",
"react-sortablejs": "6.0.3",
"react-visibility-sensor": "^5.1.1",
"sortablejs": "^1.13.0",
"tiny-slider": "^2.9.2"
Expand Down

0 comments on commit 7be6da0

Please sign in to comment.