最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Ag-Grid custom dropdown component not working due to overflow:hidden - Stack Overflow

programmeradmin2浏览0评论

In React, using the Community version of Ag Grid, I want a custom dropdown component that looks richer than a plain . In particular, I would like to use react-select.

The problem is that the cell div has overflow:hidden on it (.ag-cell-value), so the dropdown options don't show up.

On the very bottom of the page you can see an example of the dropdown outside of Active Grid so you can see what the options are supposed to look like when expanded, not being cut off by overflow:hidden.

I noticed that it is possible to use the cellEditorPopup:true option in the column definition, but then the custom component won't know the cell's size, so width:"100%",height:"100%" wouldn't work.

How best to achieve being able to use a custom dropdown component?

发布评论

评论列表(0)

  1. 暂无评论