Comments (5)
Hi,
This change was made because MCDatepicker uses one calendar node for all calendar instances.
Before this commit, the calendar node was added only to the context of the first instance.
For example: if you have 2 instances, the first one using document.body as context and the second one shadow root,
in this case, MCDatepicker will append the calendar node only to the document.body (the context of the first instance). The second instance will use its context just to search the node with the id specified in the el
option and add a listener to it.
from mcdatepicker.
I see. In order to fully support shadow dom the element would need to be inserted there.
Perhaps the package can be modified so that a date picker is inserted into each context? That way you maintain support for multiple pickers while also supporting shadow dom.
from mcdatepicker.
Yes, I think it's a good idea!
from mcdatepicker.
Hi @mikecoj any update about this shadow dom support?
This issue can be fixed adding one more options to append the picker to the given Element.
Ex: appendTo : shadowEle
from mcdatepicker.
Hi there,
unfortunately, there are no updates on this.
Due to my involvement in other big projects, I had to dedicate more time to them and less time to this one. I hope this will change soon.
If you've found the solution, I'll be happy to receive a PR from you.
Thank you!
from mcdatepicker.
Related Issues (20)
- Change from blur listener to click broke form HOT 3
- Compare selected date with date today HOT 1
- Custom names for weekdays and months does not work for some languages HOT 1
- Select calendar week HOT 1
- disableDates update, bodyType fixed? HOT 2
- You may need an appropriate loader to handle this file type HOT 1
- BUG - When selecting a two digit year (i.e. 70) the calendar jumps to 1970 HOT 2
- Problem with disableDates
- Awesome Datepicker HOT 1
- And Time ? HOT 1
- Pop-Up Blockers Cause Issues
- Help on display select date in DIV on Modal HOT 6
- customWeekDays not work HOT 7
- Behind the Modal HOT 2
- Use "customWeekDays" for Chinese week days.
- Select multiple field ids
- Could not find a declaration file for module 'mc-datepicker'.
- set full date not work. HOT 1
- Deprecation Warning: Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0
- Not able to use Date picker on two inputs HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mcdatepicker.