Fauntleroy / react-simple-dropdown

Non-prescriptive React.js dropdown toolkit
ISC License
225 stars 75 forks source link

add check for prototype instanceof in case === fails #58

Open samlecuyer opened 6 years ago

samlecuyer commented 6 years ago

I'm using this component in with react ^16.3.1 and it works fine. However, when I embed it in an app that uses next.js, the equality check on the children fails. In this case, we should check to see if it's an instanceof.

leonid-shevtsov commented 5 years ago

+1 had the same issue with React 16.6 (and no next.js) and this PR fixed it.