Closed elieahd closed 4 years ago
same here, I'm trying to fix, but i'm not able to build properly with the given package.json.
Seems like the css file is not included
same too, it's UI has broken.
any work around?
Generated html tag of an dropdown-item is different.
<li _ngcontent-c16="" class="dropdown-item" style="cursor: pointer;">
<a _ngcontent-c16="" href="javascript:;" role="menuitem" tabindex="-1">
<input _ngcontent-c16="" type="checkbox">
<span _ngcontent-c16="" style="font-weight: normal;">Unique users</span>
</a>
</li>
<a _ngcontent-c17="" class="dropdown-item active" href="javascript:;" tabindex="-1" ng-reflect-klass="dropdown-item" ng-reflect-ss-autofocus="true">
<span _ngcontent-c17="" role="menuitem" tabindex="-1">
<input _ngcontent-c17="" type="checkbox">
<span _ngcontent-c17="" ng-reflect-ng-class="[object Object]" style="font-weight: normal;">Unique users</span>
</span>
</a>
<li _ngcontent-c17="" class="dropdown-item active" href="javascript:;" tabindex="-1" ng-reflect-klass="dropdown-item" ng-reflect-ss-autofocus="true">
<a _ngcontent-c17="" role="menuitem" tabindex="-1">
<input _ngcontent-c17="" type="checkbox">
<span _ngcontent-c17="" ng-reflect-ng-class="[object Object]" style="font-weight: normal;">Unique users</span>
</a>
</li>
Hy, any solution
Me too
Same issue here. downgrading to version 1.6.3 for now
guys, I found out... just updagrade to bootstrap 4, and it will work as intended.
Cheers.
Sorry, but I'm using template which is used bootstrap 3
I have the same problem.
I fixed it using the below package.json
and running npm update
after that.
"dependencies": {
"@angular/animations": "^5.2.9",
"@angular/common": "^5.2.9",
"@angular/compiler": "^5.2.9",
"@angular/core": "^5.2.9",
"@angular/forms": "^5.2.9",
"@angular/http": "^5.2.9",
"@angular/platform-browser": "^5.2.9",
"@angular/platform-browser-dynamic": "^5.2.9",
"@angular/router": "^5.2.9",
"@angular/upgrade": "^5.2.9",
"angular-2-dropdown-multiselect": "1.6.3",
"angular-in-memory-web-api": "~0.1.1",
"angular2-jwt": "^0.2.3",
"bootstrap": "^3.3.7",
"core-js": "^2.4.1",
"jquery": "^3.2.1",
"reflect-metadata": "^0.1.8",
"rxjs": "5.5.0",
"semantic-ui-css": "^2.2.12",
"systemjs": "0.19.39",
"traceur": "^0.0.96",
"zone.js": "^0.8.4"
}
I had the same issue, inserting this css made it look presentable for the time being.
`:host /deep/ ss-multiselect-dropdown .dropdown-item { color: black; display: inherit; padding-left: 15px; }
:host /deep/ ss-multiselect-dropdown .dropdown-menu > a:hover { color: black; text-decoration: none; background-color: lightgray; }
:host /deep/ ss-multiselect-dropdown .dropdown-menu > a:focus { color: black; text-decoration: none; outline: none !important; }`
@markbecker7 where do you put this css ?
Once our project was updated to angular 5, the component changed look it seems like no css is applied to the component.
While installing node modules with npm install, a warning has appeared : Angular-2-dropdown-select@1.7.0 requires a peer of @angular/common@^4.0.0 but none was installed angular-2-dropdown-select@1.7.0 requires a peer of @angular/core@^4.0.0 but none was installed angular-2-dropdown-select@1.7.0 requires a peer of @angular/forms@^4.0.0 but none was installed