Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update adds support for diffing element defenitions with slots #1

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

kristoferjoseph
Copy link
Contributor

WIP Requires the next version of Custom Element Mixin

Copy link
Contributor

@macdonst macdonst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One question for you and one weird dependency problem that needs to get fixed.

updated.innerHTML = tmp.trim()
updated.innerHTML = tmp

if (this['scrubTemplate']) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Curious as why you wrote it this way instead of:

if (typeof this. scrubTemplate === 'function') {

@@ -25,15 +25,16 @@
},
"homepage": "https://github.com/enhance-dev/enhance-morphdom-mixin#readme",
"devDependencies": {
"@enhance/custom-element": "^1.2.3",
"@enhance/custom-element": "^1.2.3-next.0",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems to be pointing to an older release. I had to do a:

npm install "https://github.com/enhance-dev/enhance-custom-element.git#dom-diffing-slots" --save

and then I could get the tests to pass.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had reverted to v1.2.3 in order to use the latest version of custom element when it was released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants