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

Changed Rich Text Viewer markdown property to an attribute #2542

Merged
merged 4 commits into from
Feb 25, 2025

Conversation

joseahdz
Copy link
Contributor

@joseahdz joseahdz commented Feb 21, 2025

Pull Request

🤨 Rationale

The markdown property cannot be set from Blazor since Blazor does not currently support setting properties.

Some options are:

For the rich text viewer markdown property there does not seem to be a specific reason to avoid configuring markdown as an attribute.

👩‍💻 Implementation

Changed markdown property from observable to attr. Also, updated story book to show markdown as an attribute instead of a property.

The fromView mode will be used to avoid unnecessarily reflecting large strings set as properties back as attributes.

🧪 Testing

Fixed a couple of tests due to changing from a property to an attribute. All other tests are passing.

✅ Checklist

  • I have updated the project documentation to reflect my changes or determined no changes are needed.

The markdown property cannot be set from Blazor since Blazor does not support setting properties.  To make available in Blazor, it needs to be an attribute and thus the reason for the change.
@joseahdz joseahdz marked this pull request as ready for review February 24, 2025 22:23
@rajsite
Copy link
Member

rajsite commented Feb 25, 2025

Minor change that should be no observable difference to exisiting users setting the property. Bypassing owners @jattasNI @vivinkrishna-ni

@rajsite rajsite merged commit 2fbaf42 into main Feb 25, 2025
14 checks passed
@rajsite rajsite deleted the users/joseahdz/change-markdown-to-attribute branch February 25, 2025 22:54
joseahdz added a commit that referenced this pull request Feb 25, 2025
…ch-text-viewer

* main:
  Changed Rich Text Viewer markdown property to an attribute (#2542)
joseahdz added a commit that referenced this pull request Feb 26, 2025
* main:
  applying package updates [skip ci]
  Update to .net 8.0.406 (#2545)
  Changed Rich Text Viewer markdown property to an attribute (#2542)
  applying package updates [skip ci]
  Blazor chat components (#2541)
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.

2 participants