score:0
yes.
you can use the setstate() call for the button, use it's callback to trigger the blur:
...
this.setstate({ somebuttonstate: bool }, () => blurinput());
after the button modifies the state then it will call the blurinput() method. in there, do some minor javascript to cause the blur, ie.,
blurinput = () => {
document.getelementbyid(yourinputbuttonid).blur();
}
then should do it, from the text of your question. should be noted it would be synchronous not asynchronous, if you do it an order.
Source: stackoverflow.com
Related Query
- react handle simultaneous click and blur events
- Handling blur click and focus events of dropdown input suggestion lists in react
- How to handle click events on divs with React and Typescript
- React Synthetic Event distinguish Left and Right click events
- How to handle click events on child components in React.js, is there a React "way"?
- React: Stop click event propagation when using mixed React and DOM events
- Is it possible to handle click event and toggle separately for react treebeard
- handle the event on click and toggle the button color on react webchat
- Handle click outside of React component and how to add animation to it?
- React validation on blur and on button click
- React How to handle checked and unchecked events for checkbox using typescript
- React Big Calendar - Is it possible to click on a day and retrieve a list of events on that day?
- How to get map properties and handle events in leaflet v3 with react + redux?
- How to get React button's click events and class name from vanilla javascript?
- How to detect Esc Key Press in React and how to handle it
- Typescript types for React checkbox events and handlers?
- React - What is the best way to handle login and authentication?
- React and blur event
- React Click events not firing on mobile
- Emitting and handling global events with react
- How can I find and click a button that has no text using React Testing Library?
- React with NextJS and Next-CSS: You may need an appropriate loader to handle this file type
- Accessibility - React Ensure click events have key events
- What is the syntax for click events in React Hooks for passing arguments
- Handle React onDoubleClick and single onClick for same element
- Is the use of the <form> tag necessary in ReactJS that have HOC input tags that handle form-esque events and behaviour?
- Best practice to handle errors in Redux and React
- Handle Pagination Sorting and Filtering Separately in Antd Table React
- Waiting for render events with Selenium and React
- React - How to handle nested forms and its value
More Query from same tag
- Fill React state with Axios request
- Javascript - Change name of all object keys in nested arrays
- Toggle component without changing state
- Typing a React component that wraps a native input element
- Node.js Multer req.file is undefined
- can not put file in redux array
- Getting contents from useStyles()
- How do I implement Redux to functional components that already have props?
- Each child in a list should have a unique key prop problem
- Changing font size with respect to the change in screen resolution using styled-components in react
- ChartJS dynamic label
- Redirection using Axios and React
- how to define tr, td, label styles in material table
- Implement Circular progress bar using Recharts
- Can I access a state in redux like this?
- How to click off a modal to close it and properly type the event
- Socket io.on many namespaces path
- React Js Event handling in Mapped object
- Set state in React component from props and update when props change?
- react dropdown using ref and select tag
- Material UI nested class override
- ReactJs - Validating proptypes
- .map() is mapping the wrong value to my header tags
- Can I toggle styled component props based on onClick event?
- Event Emitter Memory Leak in Electron App
- Is there a better way to compose a message based on conditions?
- Send Series of Batched API Requests
- reactstrap - how can I change the color of the <CarouselControl> 's (the small arrows on left/right you click to slide the photos)?
- Styled-Components: specify styles of children on parents hover
- Type hints of flow not stripped by babel