multiple components with same ngbdatepicker
See original GitHub issue.toggle()
doesnt close the previous opened datepicker window (working with multiple datepicker components)
to reporoduce:
- click on left button - it opens first window
- click on right button - it opens second window and doesnt close the previous
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Multiple Datepicker in one form Angular2 with difference ...
My favorite solution for cases like this is to create my own component that extends the one provided by library to fulfill my...
Read more >NG0300: Multiple components match with the same tagname
Two or more components use the same element selector. Because there can only be a single component associated with an element, selectors must...
Read more >ngb-datepicker multi date picker - StackBlitz
Multi -select date picker based on ngb-date-picker. ... import { Component } from '@angular/core';. import { NgbDateStruct } from '@ng-bootstrap/.
Read more >NgbDatepicker - Angular powered Bootstrap
A highly configurable component that helps you with selecting calendar dates. NgbDatepicker is meant to be displayed inline on a page or put...
Read more >Form Datepicker | Components - BootstrapVue
<b-form-datepicker> supports many of the props available on <b-calendar> as well ... which is the same format returned by native browser <input type="date"> ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
It does. But your two datepickers have the same
positionTarget
element, so they both open themselves exactly at the same place.Here’s your stackblitz with two different
positionTarget
: https://stackblitz.com/edit/angular-ivy-d8dprn?file=src/app/random-component/random-component.component.htmlas you can see, one closes when the other is opened.
@benouat ye, i tried, but in some cases it “doesnt work well with” and looks like it very sensitive to higher position-relative containers. Im sure
cdk dnd
with itpointer-events styles
the reason why.