Skip to content

Commit

Permalink
Merge pull request #111 from PaulC91/master
Browse files Browse the repository at this point in the history
Avoid 'show' CSS class conflicts
  • Loading branch information
pvictor authored Feb 19, 2025
2 parents 4c98a70 + d4c4a0a commit 1a7e3fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion inst/assets/css/datamods.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @version 0.0.1
*/

.show {
.show-block {
display: block !important;
}
.show-inline {
Expand Down
4 changes: 2 additions & 2 deletions inst/assets/js/datamods.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Shiny.addCustomMessageHandler("datamods-showUI", function(data) {
$(sel).addClass("show-inline");
$(sel).removeClass("hidden");
} else {
$(sel).addClass("show");
$(sel).addClass("show-block");
$(sel).removeClass("hidden");
}
});
Expand All @@ -44,7 +44,7 @@ Shiny.addCustomMessageHandler("datamods-hideUI", function(data) {
$(sel).removeClass("show-inline");
} else {
$(sel).addClass("hidden");
$(sel).removeClass("show");
$(sel).removeClass("show-block");
}
});

Expand Down

0 comments on commit 1a7e3fe

Please sign in to comment.