简体   繁体   English

角<mat-select>下拉菜单不适用于星云主题

[英]Angular <mat-select> dropdown is not working along with nebular theme

I am trying to implement (angular material UI) along with the nebular components but is not working when same component/module has nebular imports .我正在尝试与星云组件一起实现(角度材质 UI),但是当相同的组件/模块具有星云导入时不起作用。 if i remove imports of nebular module mat-select works .如果我删除导入的星云模块 mat-select 工作。

with using nebular version 4.1.1 and version of angular material 8.2.3使用 nebular 版本 4.1.1 和 angular material 8.2.3 版本

Here is my stackblitz workaround that you can clearly see that select dropdown is not working.这是我的 stackblitz 解决方法,您可以清楚地看到选择下拉列表不起作用。 https://stackblitz.com/edit/github-ngmzqm?file=src%2Fapp%2Fhome%2Fhome.component.html https://stackblitz.com/edit/github-ngmzqm?file=src%2Fapp%2Fhome%2Fhome.component.html

Just make sure you have this in your app.component.html.只要确保你的 app.component.html 中有这个。

<nb-layout>
    <nb-layout-column>
        <router-outlet></router-outlet>
    </nb-layout-column>
</nb-layout>

还有另一个论坛讨论这个..你可以在这里查看..他们谈到只对一个组件使用nb主题并避免它与其他组件中的材料ui发生冲突

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM