b-form-datepicker label-no-date-selected problem
See original GitHub issueThank you for the release of datepicker component. It is very helpful.
un…I met one problem, When setting label-no-date-selected props to null, input height changes
I tried the following code,
<template>
<div>
<label for="example-datepicker">Choose a date</label>
<b-form-datepicker id="example-datepicker" v-model="value" class="mb-2" label-no-date-selected=""></b-form-datepicker>
<p>Value: '{{ value }}'</p>
</div>
</template>
<script>
export default {
data() {
return {
value: ''
}
}
}
</script>
If set label-no-date-selected = " ", there is no problem, but if set label-no-date-selected = “”, the input height changes
There should be other good ways. But i try to write css like berow.
label #example-datepicker__value_{
min-height: 36px;
}
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Form Datepicker | Components - BootstrapVue
If a placeholder is not provided, the value of the label-no-date-selected prop is used. Date picker with placeholder. Choose a date.
Read more >bootstrap-vue - UNPKG
... there are multiple instances of Vue, and warns (once) about possible issues. ... NAME_FORM_DATEPICKER = 'BFormDatepicker'\nexport const NAME_FORM_FILE ...
Read more >chunk-vendors.c232ca55.js - Connect NCDOT
node_modules/core-js-pure/modules/esnext.aggregate-error.js","webpack:///./node_modules/core-js-pure/modules/es.symbol.js","webpack:///.
Read more >Team:Estonia TUIT/ nuxt/122a1d3 - iGEM 2020
(r=i.next()).done;)l.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(o=i.return) ... 0}),Object(n.a)(Gt,"BFormDatepicker",{selectedVariant:void 0 ...
Read more >https://dspace.cvut.cz/bitstream/handle/10467/8767...
n */\nmodule.exports = function enhanceError(error, config, code, request, ... labelNoDateSelected,\n // Which date cell is considered active due to ...
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
But you really should have a label when there is no date selected, so that screen reader users will know that there is no value selected (since the date picker is not a native HTML input).
This should be fixed in the next release 2.6.0 coming soon.