Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NumberField] Prevent virtual cursor overlapping native one #1491

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

atomiks
Copy link
Contributor

@atomiks atomiks commented Feb 28, 2025

The virtual cursor currently can overlap the native one since the state can be set before the pointer lock promise (previously had wrong types in TS itself - it's now correct) finishes. Removed the flicker timeout as a result

@atomiks atomiks added the component: number field This is the name of the generic UI component, not the React module! label Feb 28, 2025
Copy link

netlify bot commented Feb 28, 2025

Deploy Preview for base-ui ready!

Name Link
🔨 Latest commit 0056935
🔍 Latest deploy log https://app.netlify.com/sites/base-ui/deploys/67c95feda4ff190008d498ce
😎 Deploy Preview https://deploy-preview-1491--base-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged label Mar 5, 2025
@mnajdova
Copy link
Member

mnajdova commented Mar 6, 2025

Can you share a screen-recording of this? I can't reproduce it, it was make it clear what's the PR about.

@atomiks
Copy link
Contributor Author

atomiks commented Mar 6, 2025

@mnajdova it's hard to see in the screen recording (I tried) because the flicker of the two overlapping cursors is so quick. Essentially, you briefly saw two simultaneous cursors (native and our fake HTML one - can repro old on live base-ui.com), now you should not.

As long as you see it looks good now, that's fine

@github-actions github-actions bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged label Mar 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: number field This is the name of the generic UI component, not the React module!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants