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

Fixed pc.html to accept state var. #775

Merged
merged 6 commits into from Apr 5, 2023
Merged

Fixed pc.html to accept state var. #775

merged 6 commits into from Apr 5, 2023

Conversation

Alek99
Copy link
Contributor

@Alek99 Alek99 commented Apr 5, 2023

All Submissions:

  • Have you followed the guidelines stated in CONTRIBUTING.md file?
  • Have you checked to ensure there aren't any other open Pull Requests for the desired changed?

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

New Feature Submission:

  • Does your submission pass the tests?
  • Have you linted your code locally prior to submission?

Changes To Core Features:

  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your core changes, as applicable?
  • Have you successfully ran tests with your changes locally?

After these steps, you're ready to open a pull request.

a. Give a descriptive title to your PR.

b. Describe your changes.

This pr allow the html component to access state vars.

c. Put `closes #XXXX` in your comment to auto-close the issue that your PR fixes (if such).

@Alek99 Alek99 requested a review from picklelo April 5, 2023 04:21
@@ -38,3 +38,6 @@ def create(cls, *children, **props):

# Create the component.
return super().create(**props)

def _render(self) -> Tag:
Copy link
Contributor

Choose a reason for hiding this comment

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

Can remove this now

Copy link
Contributor

@picklelo picklelo left a comment

Choose a reason for hiding this comment

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

nice

@Alek99 Alek99 changed the title Fixed html to accept state var. Fixed pc,html to accept state var. Apr 5, 2023
@Alek99 Alek99 changed the title Fixed pc,html to accept state var. Fixed pc.html to accept state var. Apr 5, 2023
@Alek99 Alek99 merged commit bd6ea9d into main Apr 5, 2023
5 checks passed
@sheldonchiu
Copy link
Contributor

Hi, after updating to this commit, " character in the content is not escaped, is this a expected behavior or should I open a issue for this?

@picklelo picklelo deleted the alek/htmlstate branch April 26, 2023 06:52
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

3 participants