react-native-element-dropdown icon indicating copy to clipboard operation
react-native-element-dropdown copied to clipboard

Other modals flickering while closing dropdown

Open SYursa opened this issue 6 months ago • 3 comments

Hi! 👋

Firstly, thanks for your work on this project! 🙂

Today I used patch-package to patch [email protected] for the project I'm working on.

Other modals flickering while closing dropdown

Here is the diff that solved my problem:

diff --git a/node_modules/react-native-element-dropdown/src/components/Dropdown/index.tsx b/node_modules/react-native-element-dropdown/src/components/Dropdown/index.tsx
index 2a73f2f..c1a3147 100644
--- a/node_modules/react-native-element-dropdown/src/components/Dropdown/index.tsx
+++ b/node_modules/react-native-element-dropdown/src/components/Dropdown/index.tsx
@@ -638,7 +638,7 @@ const DropdownComponent = React.forwardRef<IDropdownRef, DropdownProps<any>>(
     );
 
     const _renderModal = useCallback(() => {
-      if (visible && position) {
+      if (position) {
         const { isFull, width, height, top, bottom, left } = position;
 
         const onAutoPosition = () => {

SYursa avatar Jun 30 '25 07:06 SYursa

Same issue while opening the dropdown as a modal... Still finding for fix

aravind3566 avatar Jul 03 '25 07:07 aravind3566

Your solution worked for my issue with the Modal not closing in react-native-windows v0.79. Thank you!

KGGrande avatar Jul 18 '25 18:07 KGGrande

Same issue while opening the dropdown as a modal... Still finding for fix

I tried removing itemContainerStyle, and it worked. I removed the border style and border width from itemContainerStyle, and that resolved the issue.

AsurNikul avatar Jul 30 '25 10:07 AsurNikul