Skip to content

[fix] js component bugs#4

Open
gmacmaster wants to merge 2 commits into
mainfrom
fix/js-component-bugs
Open

[fix] js component bugs#4
gmacmaster wants to merge 2 commits into
mainfrom
fix/js-component-bugs

Conversation

@gmacmaster
Copy link
Copy Markdown

No description provided.

gmacmaster and others added 2 commits April 17, 2026 22:49
…on Windows

- Fix hover-out delay timeout being assigned to _hoverInDelayTimeout instead of
  _hoverOutDelayTimeout, which prevented proper cancellation
- Remove misleading nullish coalescing in onStartShouldSetResponder since
  !disabled always produces a boolean

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
tabIndex used boolean negation (!tabIndex) which made any positive tabIndex
(1, 2, etc.) incorrectly set focusable to false. Changed to tabIndex >= 0
to match ARIA/web standard behavior.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@greptile-apps
Copy link
Copy Markdown

greptile-apps Bot commented Apr 18, 2026

Greptile Summary

This PR fixes three distinct bugs across two Windows-specific React Native files. The changes are all straightforward correctness fixes with no new logic introduced.

Confidence Score: 5/5

All three changes are well-targeted bug fixes with no regressions introduced — safe to merge.

Every change corrects a clear pre-existing defect (wrong boolean logic for tabIndex, dead nullish-coalescing on a guaranteed boolean, wrong timeout property in hover-out handler). No new logic, no P0/P1 findings.

No files require special attention.

Important Files Changed

Filename Overview
vnext/src-win/Libraries/Components/View/View.windows.js Fixes incorrect tabIndex → focusable mapping: !tabIndex was falsy for any positive tabIndex value, now correctly uses tabIndex >= 0.
vnext/src-win/Libraries/Pressability/Pressability.windows.js Two fixes: removes dead ?? true (nullish coalescing never fired on a boolean), and corrects hover-out timeout stored in wrong property (_hoverInDelayTimeout → _hoverOutDelayTimeout).

Reviews (1): Last reviewed commit: "Fix tabIndex to focusable mapping for po..." | Re-trigger Greptile

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