Skip to content

OJS inputs hidden in Hugo output? #2495

@aaronschiff

Description

@aaronschiff

Not tagging this as a bug as I'm not sure if I'm doing something wrong -- would appreciate any help. I'm using Quarto 1.1.251.

Inputs in ObservableJS cells created in Quarto with hugo as the output format, then rendered to html using hugo seem to be hidden. Here is an example qmd:

---
title: Test Quarto + Hugo + OJS
author: Aaron Schiff
date: 2022-09-19T17:12:56+12:00
draft: false
format: html
execute:
    echo: false
    warning: true
---

## Testing OJS input

```{ojs}
viewof test_input = Inputs.select(['A', 'B', 'C'], { label: "Pick one:" });
```

Should be input box above here.

The output after rendering with hugo looks like this:

Screen Shot 2022-09-19 at 17 26 48

The select input exists in the rendered html but has display: none; applied by quarto-ojs.css:

Screen Shot 2022-09-19 at 17 29 07

If I change the output target to html, the select input appears as expected:

Screen Shot 2022-09-19 at 17 33 18

Is this a Quarto issue or have I done something wrong, eg in the yaml?

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingojs-engineIssues with the ojs engine

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions