From 2d0ea53e67f385224edee636707d05aac1e96ad6 Mon Sep 17 00:00:00 2001 From: Joe Cheng Date: Fri, 2 Jun 2017 08:51:11 -0700 Subject: [PATCH] Fix viewVerbose JS error Namespace separator is `-`, which is not allowed in JavaScript identifiers. Using bracket notation solves this. --- R/ggeditUI.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/R/ggeditUI.R b/R/ggeditUI.R index bf04d33..e9bc2d2 100644 --- a/R/ggeditUI.R +++ b/R/ggeditUI.R @@ -17,7 +17,7 @@ ggEditUI <-function(id){ shiny::column(width=2,shiny::actionLink(ns('viewVerbose'),'View Layer Code')) ), shiny::hr(), - shiny::conditionalPanel(paste0('input.',ns('viewVerbose')),shiny::uiOutput(ns("SimPrint"))), + shiny::conditionalPanel(paste0('input["',ns('viewVerbose'),'"]'),shiny::uiOutput(ns("SimPrint"))), shiny::column(width=3,shiny::uiOutput(ns('activePlot'))), shiny::column(width=6,shiny::uiOutput(ns('layers'))), shiny::plotOutput(outputId = ns("Plot")), @@ -25,4 +25,4 @@ ggEditUI <-function(id){ shiny::uiOutput(ns('popTheme')) )) ) -} \ No newline at end of file +}