Skip to content

Conversation

@PruthviPraj00
Copy link
Contributor

What Changed:

  • Updated logic to handle the class attribute separately.
  • Appends the new class value to el.className instead of overwriting it.

Why:

  • Prevents loss of existing CSS classes when dynamically setting attributes.
  • Ensures that additional classes from data items are added without removing pre-existing ones.

Impact:

  • Improves UI consistency and avoids unintended style overrides when multiple class values are applied.

@jahaganiev
Copy link
Member

jahaganiev commented Jul 19, 2025

Hey @PruthviPraj00 - thanks for the PR. It'll be included in the next release.

@jahaganiev jahaganiev merged commit 5b98f81 into htmlstreamofficial:main Jul 30, 2025
@jahaganiev
Copy link
Member

jahaganiev commented Jul 30, 2025

Preline UI v3.2 is live and includes the PR improvements. Thanks!

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