Skip to content

Conversation

@vinojv
Copy link

@vinojv vinojv commented Aug 20, 2025

🐛 Bug Fix: Reordering issue in Chrome v138.0.7204.169

This PR fixes a bug where reordering functionality fails in Chrome version 138.0.7204.169 and above.

📝 Details

Starting with Chrome v138.0.7204.169, the getComputedStyle(el).borderSpacing property now returns a shorthand value (e.g., "0px") instead of separate horizontal and vertical values. This change causes the reordering logic to fail, as it was previously expecting a specific vertical spacing value.

🛠️ Solution

To fix this, a default value has been added for the vertical spacing when the getComputedStyle property returns a shorthand value. This ensures the reordering logic can correctly calculate the element positions, restoring the functionality in the affected Chrome versions.

@vinojv vinojv changed the title FIx getBorderSpacing util function for chrome 138.0.7204.169 Fix getBorderSpacing util function for chrome 138.0.7204.169 Aug 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant