I would like to implement lit-element-bootstrap package in lit-element.  I am getting following error in console, Failed to load module script: The server responded with a non-JavaScript MIME type of "text/html". Strict MIME type checking is...
I would like to statically serve a project, that uses webcomponents (using lit-html), without any packaging tools like webpack etc.   The example project is composed of this structure:  index.html app.js package.json   package.json:  {   "name...
When the page first loads, the delete buttons generated by the code below work as expected. However, if you alter the text in one of the <textarea> elements, the delete button no longer works correctly. How can I fix this?  import { LitElement,...
I have built a native web component called <expanding-textarea> which extends the functionality of <textarea>. I am able to set text content of the component like <expanding-textarea>content goes here</expanding-textarea> but...
I want to use this library via CDN. https://www.jsdelivr.com/package/npm/lit-element  My js code is here.  import { LitElement, html } from "https://cdn.jsdelivr.net/npm/[email protected]/lit-element.js";  class MyElement extends LitElement {...
Is there a way to create a custom event in in Lit-Element/Polymer, such as a mouse-over event? I've been searching for this a while now, but I can seem to find a way of doing it. I know about events in Lit-Element, like @click, but nothing about...
I am working with lit-element 2.0 and I am having an issue where I am getting an error code   Uncaught TypeError: Cannot read property 'querySelectorAll' of undefined  this is the code that is generating the error          console.log(this._r...
Stripe.js does not yet support shadow-dom. Using Lit-elements's createRenderRoot() (documentation),(source)  you can render the template into the element's light DOM by using return this; . However this only works if you implement createRende...
Ok, so I don't actually know that the problem is with LitElement but it's the only thing I can think of that might break it.  I'm trying to use handy-scroll to have a floating scroll bar. I want to scroll vertically over legend and diagra...
I realise this is not a support forum; I am trying to sneak this in as a documentation request.  Short question: what's the recommended way of creating elements that behave exactly the same as native ones, in all respects? (offering extras, yes,...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.