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

tagQuery()'s $addClass() should allow NULL values #216

Closed
cpsievert opened this issue Apr 19, 2021 · 0 comments · Fixed by #236
Closed

tagQuery()'s $addClass() should allow NULL values #216

cpsievert opened this issue Apr 19, 2021 · 0 comments · Fixed by #236
Assignees

Comments

@cpsievert
Copy link
Collaborator

Which would be a no-op and is convenient for this sort of use:

tagQuery(div())$addClass(if (F) "a")
#> Error in getCssClass(class) : 
#>  `class` must resolve to a character value with a length of at least 1
tagAppendChildren(div(), class = if (F) "a")
#> <div></div>
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 a pull request may close this issue.

2 participants