Skip to content

Updates 23 jul - #2105

Merged
frantic merged 10 commits into
react:masterfrom
frantic:updates-23-jul
Jul 23, 2015
Merged

frantic merged 10 commits into
react:masterfrom
frantic:updates-23-jul

Conversation

@frantic

@frantic frantic commented Jul 23, 2015

Copy link
Copy Markdown
Contributor

No description provided.

Rui Chen and others added 10 commits July 22, 2015 15:24
Summary:
Animated.spring is not guarantee to stabilize at exactly toValue (determined by restDisplacementThreshold). It is a bit annoying that the last value is not toValue, it makes the logs harder to read and also prevents you from writing code like value === toValue. Instead you need to track it down somewhere else.
Summary:
In preparation for open sourcing React Native for Android, document which ScrollView props are platform-specific.
Summary:
This change makes `npm start` work correctly on e.g. NixOS.
Closes react#2006
Github Author: Daniel Brockman <daniel@brockman.se>
@facebook-github-bot facebook-github-bot added GH Review: review-needed CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. labels Jul 23, 2015
frantic added a commit that referenced this pull request Jul 23, 2015
@frantic
frantic merged commit a803e32 into react:master Jul 23, 2015
FalseLobster pushed a commit to FalseLobster/react-native that referenced this pull request Jul 3, 2024
* Ensure ghost text doesn't appear when performing undos

* Clarify purpose of strict mode in `removingGhostTextFromString:strict:`

* Add clarifying comments about `removingGhostTextFromString:strict:` nil checks

---------

Co-authored-by: Adam Gleitman <adgleitm@microsoft.com>
gabrieldonadel pushed a commit to gabrieldonadel/react-native that referenced this pull request Apr 23, 2026
…tion fixes (react#2912)

## Summary

TextInput commands (`setGhostText`, `blur`, `setSelection`) don't work
correctly under Fabric on macOS. This PR fixes three issues:

- **Add missing `setGhostText` command to Fabric**: Ghost text was
implemented for Paper in react#1890 / react#1897 (with undo fixes in react#2105 /
react#2106), but the Fabric command dispatcher and component view never got
the implementation. This ports the ghost text logic (insertion, removal,
attributes, delegate cleanup) from `RCTBaseTextInputView` to
`RCTTextInputComponentView`.
- **Fix `blur` command on macOS Fabric**: `blur` was a silent no-op
because it compared `[window firstResponder]` against the NSTextField,
but on macOS the firstResponder during editing is the field editor
(NSTextView), not the text field itself. Fixed by checking
`currentEditor` on NSTextField.
- **Fix ghost text being selectable on Fabric**: Ghost text could be
selected by the user on Fabric (but not Paper). Added cleanup in
`textInputDidChangeSelection` to clear ghost text when the user changes
selection, matching Paper behavior.
- **Fix `setTextAndSelection` delegate notification**: Changed
`notifyDelegate:YES` to `notifyDelegate:NO` to match Paper's
`setSelectionStart:selectionEnd:` behavior and prevent spurious delegate
callbacks during programmatic selection changes.

## Test plan

- [x] Verified `setGhostText` command works via RNTester on macOS Fabric
- [x] Verified `blur` command works on macOS Fabric  
- [x] Verified ghost text is not selectable on Fabric
- [x] Verified `focus`, `clear`, `setSelection` commands still work
- [x] JS TextInput tests pass

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants