Blueprint: How can MultiSelect support scrollable popover

Created on 16 Feb 2019  路  2Comments  路  Source: palantir/blueprint

Environment

  • blueprintjs/select@^3.3.0:
  • __Browser and OS versions__:

Question

I'm using MultiSelect and would like to know how to make the popover scrollable?

MultiSelect has popoverProps which is props to spread to Popover. Note that content cannot be changed., then I cannot change the popover content using the solution in
https://blueprintjs.com/docs/#core/components/popover.sizing

question

Most helpful comment

I think I found a solution by setting some global CSS like

.bp3-multi-select-popover .bp3-menu{max-height:300px;overflow:auto}

If so, we can close this issue.

All 2 comments

I think I found a solution by setting some global CSS like

.bp3-multi-select-popover .bp3-menu{max-height:300px;overflow:auto}

If so, we can close this issue.

same as https://github.com/palantir/blueprint/issues/2768#issuecomment-411152300, you should use popoverClassName and apply the relevant CSS to set a max-height for the relevant popovers. I would recommend avoiding global styles which apply to all MultiSelects like that.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

adidahiya picture adidahiya  路  18Comments

mulholio picture mulholio  路  20Comments

ripitrust picture ripitrust  路  19Comments

lucantini picture lucantini  路  17Comments

ConneXNL picture ConneXNL  路  24Comments