Comments (3)
It look like React listening focusout
instead of blur
event, because blur
event doesn't bubble up to the container. However, the focusout
isn't triggered when the Done
button is clicked in Chrome for iOS.
May same issue in Flutter:
Related Chrome issue:
from react.
Thank you for your kind response.
I think using the focusout event for onBlur's internal implementation is a matter of choice. The React team's
But I think it's unexpected behavior that it doesn't trigger when actual DOM blur occurs.
I understand that in the ios chrome environment, the DOM blur event is triggered, but the focusout is not, and that's probably an issue that either ios or chrome intended or should address.
However, I think if the DOM blur event were still triggered, the onBlur handler should still be fired.
Please feel free to share your opinions
from react.
Since React listens to the actual DOM events on the container and distributes them internally, and the blur
event don't bubble up and can't be listened by React, focusout
is used instead. It may be a lot of trouble to solve this problem without changing the way the React event system works.
from react.
Related Issues (20)
- New hook: useMemoWithPrev HOT 1
- Bug: Component's redux state value resets to null even though no action to do so initiated HOT 1
- Bug: unstable_runWithPriority continious loop
- [DevTools Bug]: Memory leak when not using the extension HOT 3
- about the react performance (how to improve it)
- Proposal: Include Error Boundary Lifecycle Hooks in React's Core API
- Not detecting React App HOT 2
- Bug : Application crashes in Navigating reference pages HOT 2
- [DevTools Bug] Cannot remove node "1455" because no matching node was found in the Store. HOT 1
- Bug:
- The value of useReducer (proposal) HOT 4
- Bug: Class component with `defaultProps` not merging props correctly in `componentDidMount` HOT 2
- Bug: React-ts can't support sass, which makes people suffer from obsessive-compulsive disorder! HOT 1
- Bug: promises passed to server actions block on promise parameters
- Bug: server actions cannot be cancelled or given abort signals HOT 2
- Bug: Property 'inputType' does not exist on type 'Event' HOT 5
- Bug: error boundary does not catch exceptions from 'true' branch of an if-statement
- Bug:
- Bug: ESLint rule doesn't catch mistake with non-exhaustive dependencies
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react.