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.

[Bug Report] VInput: outlined fieldset legend clipped when dynamically shown

See original GitHub issue

Versions and Environment

Vuetify: 2.0.0-beta.1 Vue: 2.6.10 Browsers: Chrome 74.0.3729.131 OS: Linux x86_64

Steps to reproduce

  1. Create an outlined VTextField, VTextarea or VSelect with a default value so that the fieldset legend is initially set/shown at the top.

  2. Place the previously created element in a wrapper with display: none.

  3. Dynamically (through JavaScript) change the wrapper style to display: block.

Expected Behavior

The fieldset legend will have a width in pixels corresponding to the fieldset legend text width. This makes the outlined border not “strike” the fieldset legend text.

Actual Behavior

The fieldset legend will have a width of 6px regardless after the wrapper style is dynamically changed, thus making it appear “clipped” with the outlined border.

Reproduction Link

https://codepen.io/anon/pen/mZyEmE

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:24 (7 by maintainers)

github_iconTop GitHub Comments

4reactions
Trobbdorcommented, Oct 22, 2019

My workaround was inspired by this similar Material-UI issue, where one suggestion was to make the label border white.

Using this Stackoverflow answer as guidance, I have this scoped styling:

    >>>label{
        background-color:white 
    }
3reactions
johnleidercommented, Jun 14, 2019

Beyond the suggestion that @jacekkarczmarczyk provided, you could also use a dynamic key to force re-rendering of the inputs. This will also retain the state of the inner items.

https://codepen.io/johnjleider/pen/rExOod

Otherwise, there is not much we can do.

If you have any additional questions, please reach out to us in our Discord community.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using the fieldset and legend elements
In this blog Léonie explains the correct usage of the fieldset and legend elements. On GOV.UK we often use groups of related form...
Read more >
no specific threat - Hybrid Analysis
This report is generated from a file or URL submitted to this webservice on June 2nd 2021 ... Not all malicious and suspicious...
Read more >
How to position the legend inside a fieldset with a border?
I found that simple float:left for LEGEND will do the job. ... Use an outline instead of a border: http://jsfiddle.net/leaverou/gtNnT/.
Read more >
Meta Imaging Series® MetaMorph Drop-in Commands
box is cleared, only the external outline of the grid will be displayed. ... the operation, fill the stack with images acquired up...
Read more >
Mega2 documentation
Mega2 can read input data in several formats: LINKAGE format, PLINK format, IMPUTE format and VCF format (as listed here: 1.6.1↓).
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