NgbTypeahead component doesn't scroll inside a scrollable component

后端 未结 4 1297
温柔的废话
温柔的废话 2021-01-25 03:11

I am using NgbTypeahead component of ng-bootstrap. My problem is, when I put the typeahead component inside a scrollable component and make a scroll down, the position of dropdo

4条回答
  •  清酒与你
    2021-01-25 04:09

    Place the following code in your styles.css.

    We can place the following code in any of the following files

    • Style.css file
    • index.html style tag
    ngb-typeahead-window {
      max-height: 200px;
      overflow-y: auto;
      overflow-x: hidden;
    }
    

    Working code stackblitz link: https://stackblitz.com/edit/angular-qpzsfv

提交回复
热议问题