-
Notifications
You must be signed in to change notification settings - Fork 2
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
Fix: :checked attribute when set to false #12
Conversation
WalkthroughThe recent updates focus on enhancing error handling and refining export/import patterns across several modules. A significant shift from default to named exports for the Changes
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review Status
Actionable comments generated: 3
Configuration used: CodeRabbit UI
Files selected for processing (4)
- lib/entity.js (1 hunks)
- lib/entity/attributes.js (5 hunks)
- lib/entity/events.js (2 hunks)
- lib/main.js (1 hunks)
Files skipped from review due to trivial changes (1)
- lib/main.js
Additional comments: 4
lib/entity/attributes.js (2)
- 120-130: The
evaluateValue
method correctly handles the evaluation of the:value
attribute and logs errors using_handleError
. Ensure thatnewValue != null
is the intended condition for setting the element's value, as this would not setnull
orundefined
values.- 132-142: The
evaluateChecked
method properly evaluates the:checked
attribute and uses_handleError
for error logging. Verify that the conditionisChecked != null
is intended to prevent settingnull
orundefined
values to thechecked
property.lib/entity/events.js (1)
- 251-255: The error handling in
evaluate
method correctly uses_handleError
to log errors. Verify that all event attributes are properly sanitized before interpretation to prevent potential security issues.lib/entity.js (1)
- 7-7: The change from default to named export for the
Entity
class is correctly implemented. Verify that all import statements in the codebase have been updated to reflect this change.
🚀 PR was released in |
Description
The
:checked
attribute is not working properly with this component:I refactored as to how
:checked
is evaluate. Before:checked
is only set when it istrue
, but if it isfalse
, it is being ignored.📦 Published PR as canary version:
1.0.1-canary.12.9c978f6.0
✨ Test out this PR locally via:
npm install tonic-minijs@1.0.1-canary.12.9c978f6.0 # or yarn add tonic-minijs@1.0.1-canary.12.9c978f6.0
Summary by CodeRabbit