question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

hidden property attribute is not hiding form element in UI

See original GitHub issue

Expected behavior

When a property in schema has "hidden" attribute defined true then the UI element should be hidden.

Actual behavior

UI element is still visible

Steps to reproduce the behavior

Please look into below link for example where name property has "hidden": true JsonEditor Interactive sample

{
  "title": "json schema example",
  "type": "object",
  "properties": {
    "example": {
      "type": "string",
      "description": "This is an example schema.",
      "default": "Please edit me.",
      "hidden": true
    }
  }
}

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6

github_iconTop GitHub Comments

2reactions
bittucommented, Feb 4, 2019

After parsing the code found setting

"options": {
    "hidden": true
}

It is hiding the whole element.

Example

0reactions
pmk65commented, Feb 7, 2019

I found a use for the "format: "hidden". If you define a field like this:

"textblock": {
  "type": "string",
  "format": "hidden",
  "description": "<h3>Text with <strong>HTML</strong> Tags</h3>",
  "options": {
    "compact": true
  }
}

The you can use the description field to insert a block of HTML text (Like an introduction text). 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

hidden attribute ignored on Button component - Stack Overflow
First, the hidden attribute has nothing to do with Material UI or React, but is a default HTML attribute from the web standard....
Read more >
The Hidden attribute on the WindowAction element does not ...
The Hidden attribute on the WindowAction element does not hide the action button when it is set to true. When setting the Hidden...
Read more >
The `hidden` Attribute is Visibly Weak - CSS-Tricks
It's extremely weak. Literally any change to the display property other than the none value on the element with any strength selector will ......
Read more >
Hiding DOM elements - ally.js
When we say an element is hidden, we usually mean it is not visible. However, the screen is not the only output mechanism...
Read more >
Don't use hidden attribute with Angular 2 - Talking Dotnet
The hidden global attribute is a Boolean attribute indicating that the element is not yet, or is no longer, relevant. For example, it...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found