File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 "description" : " Base Custom Webcomponent" ,
33 "name" : " @node-projects/base-custom-webcomponent" ,
4- "version" : " 0.25.10 " ,
4+ "version" : " 0.26.0 " ,
55 "type" : " module" ,
66 "main" : " ./dist/index.js" ,
77 "author" : " " ,
Original file line number Diff line number Diff line change @@ -462,7 +462,7 @@ export class BaseCustomWebComponentNoAttachedTemplate extends HTMLElement {
462462 if ( firstRun || node [ property ] !== value ) {
463463 if ( removeAttributes && attribute )
464464 ( < Element > node ) . removeAttribute ( attribute . name ) ;
465- if ( property === 'innerHTML' && value instanceof Element ) {
465+ if ( property === 'innerHTML' && ( value instanceof Element || value instanceof DocumentFragment ) ) {
466466 for ( let c = node . firstChild ; c !== null ; c = node . firstChild ) {
467467 node . removeChild ( c ) ;
468468 }
You can’t perform that action at this time.
0 commit comments