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.

b-form-datepicker label-no-date-selected problem

See original GitHub issue

Thank 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:closed
  • Created 4 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
tmorehousecommented, Feb 27, 2020

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).

1reaction
tmorehousecommented, Feb 27, 2020

This should be fixed in the next release 2.6.0 coming soon.

Read more comments on GitHub >

github_iconTop 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 >

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