[Bug Report] VInput: outlined fieldset legend clipped when dynamically shown
See original GitHub issueVersions 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
-
Create an outlined
VTextField
,VTextarea
orVSelect
with a default value so that the fieldset legend is initially set/shown at the top. -
Place the previously created element in a wrapper with
display: none
. -
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
Issue Analytics
- State:
- Created 4 years ago
- Comments:24 (7 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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:
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.