Closed elb98rm closed 7 months ago
After some investigation:
This appears to be cause by the DOM not being ready. I'd suggest you mention in the documentation that the calls be placed "last" in the load, for example, after the body.
Note that the jQuery $(document).ready()
fixes this.
The SB worked for me. I also noticed that the sample was a bit behind. 6.9.5 is the latest version.
Glad you got it working.
Thanks for your attention: the point I was making was that the SB did work, the raw HTML did not... because of the loading I mentioned. You may want to note that in the docs!
Prerequisites
Describe the issue
I have looked at stackblitz for an example of code (see link). I have then used this to create the simplest version I could for debugging. This gives the error:
errors.ts:110 Uncaught Error: TD: No element was provided. at ErrorMessages.mustProvideElement (errors.ts:108:19) at new TempusDominus (tempus-dominus.ts:55:31) at test.html:32:34
The following is a direct copy - the only difference is that
index.js
is added to header as inline script.StackBlitz fork
https://stackblitz.com/edit/tempus-dominus-v6-simple-setup
What operating system(s) are you seeing the problem on?
Windows
What browser(s) are you seeing the problem on?
Chrome
What version of are you using? You can find this information from the sample StackBlitz.
v6.7.16
What your browser's locale? You can find this information from the sample StackBlitz.
en-GB