You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I click on the button, I want to show the input field but because of the onMenuClose, I can not able to show the input field on button click inside MenuList components. Here is the code for this:
const handleAddNew = async (e: React.MouseEvent<HTMLElement>) => {
console.log('boolean value in clicking on the add new button', props.selectProps.menuIsOpen);
console.log('onMenuClose value in clicking on the add new button', props.selectProps.onMenuClose);
// props.selectProps.menuIsOpen = true;
e.stopPropagation();
e.preventDefault()
setShowInputField(true);
};
HELP WILL BE APPRECIATED. AS I DID NOT FIND A WAY TO FIX THIS.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
My select have following code:
When I click on the button, I want to show the input field but because of the onMenuClose, I can not able to show the input field on button click inside MenuList components. Here is the code for this:
HELP WILL BE APPRECIATED. AS I DID NOT FIND A WAY TO FIX THIS.
Screen.Recording.2023-05-26.at.16.57.54.mov
Beta Was this translation helpful? Give feedback.
All reactions