-
-
Notifications
You must be signed in to change notification settings - Fork 148
React-bootstrap Dropdown not compatible #146
Comments
Hmm - that's a little odd - it seems like the |
Yes, Dropdown.Menu has the required bsRole property declared in |
Ah, alright I can probably resolve those in |
This seems to still be an open issue. Using
Documentation for DropdownButton: https://react-bootstrap.github.io/components.html#btn-dropdowns |
Hello @benkaiser I confirm that I still have the issue on my side. The #306 issue is related to that point, but unfortunately, I fear that there is no progress on a possible resolution. I will try to investigate on my side... |
When using React-bootstrap component Dropdown it goes to children and from the property bsRole it distinguishes menu component and toggle component - see https://github.com/react-bootstrap/react-bootstrap/blob/master/src/Dropdown.js#L310.
When this is evaluated by React, child components have bsRole property populated and Dropdown registers subcomponents properly.
When Preact evaluates the same code, child nodes do not have properties populated and therefore subcomponent registration (toggle and menu) does not work.
This seems to be related to how Preact is optimized so not sure if this behavior can be changed?
To replicate the issue you can just create-react-app with following App.js:
The text was updated successfully, but these errors were encountered: