Skip to content

Conversation

@Eliav2
Copy link
Owner

@Eliav2 Eliav2 commented Sep 17, 2025

No description provided.

@codesandbox
Copy link

codesandbox bot commented Sep 17, 2025

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

@Eliav2 Eliav2 merged commit 486a5e3 into main Sep 17, 2025
1 check passed
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is being reviewed by Cursor Bugbot

Details

You are on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle.

To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

min="0"
max="10"
value={maxRows}
onChange={(e) => setMaxRows(parseInt(e.target.value) ?? 0)}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Invalid Input Handling Fails

The onChange handler for the maxRows input uses the nullish coalescing operator (??) with parseInt(). When parseInt() returns NaN for invalid input, ?? doesn't treat NaN as nullish. This results in setMaxRows(NaN) instead of the intended fallback to 0, which can lead to unexpected behavior in the OverflowList component.

Fix in Cursor Fix in Web

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.

2 participants