Skip to content

Component Question creates an Empty paragraph when there is not description #1170

@adrienmontbroussous

Description

@adrienmontbroussous

Describe the bug

The html element

<p id="question-description-idQuestion">

is created with an empty content when no description is passed as parameters of the lunatic Component

To Reproduce

Steps to reproduce the behavior:

Create a lunatic component Question without any description.

Expected behavior

I don't want to have a paragraph element for the question description (witch adds a new line) if no description is passed as parameter.

Screenshots

screenshot_issue_lunatic

Version where the bug appeared

"@inseefr/lunatic": "^3.4.7-rc.1"

Browser where the bug was tested

  • Firefox
  • Edge

Additional context

Add any other context about the problem here.

Metadata

Metadata

Labels

Type: BugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions