Datepicker styling is broken (wrong width?)
See original GitHub issueDescribe the bug
In our project we are trying to use datepicker but it keeps having broken layout. Please see the screenshots attached for details. Increasing style width of the element with id: “_BVID__73__calendar-wrapper” seems to be solving the issue but it can’t be done via Vue code without dirty hacks.
Steps to reproduce the bug
Add a datepicker vue component to your view.
<b-form-group label="Date of Birth" label-for="edit-input-dateofbirth" class="mr-2"> <b-form-datepicker id="edit-input-dateofbirth" v-model="form.dateOfBirth" ></b-form-datepicker> </b-form-group>
Expected behavior
Layout supposed to be correct (like in examples)
Versions
Libraries:
- BootstrapVue: 2.11.0
- Bootstrap: 4.4.1
- Vue: 2.6.11
Environment:
- Device: Mac
- OS: macOS Mojave
- Browser: Brave
- Version: Version 1.4.96 Chromium: 80.0.3987.132 (Official Build) (64-bit)
Additional context
I’m attaching the screenshots with details:
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Bootstrap Datepicker strange sizing - css - Stack Overflow
The datepicker works fine but for some reason when I click on the month/year "zoom-out" button, the content is squashed into half the...
Read more >Handling common HTML and CSS problems - MDN Web Docs
Some problems can be solved by just taking advantage of the natural way in which HTML/CSS work. Unrecognized HTML elements are treated by...
Read more >10 Most Common Bootstrap Mistakes That Developers Make
Common Bootstrap Mistake #4: Using everything that Bootstrap offers. As mentioned before, Bootstrap is comprehensive. It offers a lot of UI components, HTML...
Read more >DatePicker API - MUI X
Name Type Default
onChange * func
renderInput * func
acceptRegex RegExp /\dap/gi
Read more >Custom Date Picker in JavaScript & CSS - YouTube
Learn how to code a completely customizable date picker in JavaScript & CSS. We use the power of js loops, event listeners, CSS...
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
I’m thankful, it worked!
Make sure you are using the latest BootstrapVue v2.12.0 CSS as well (and that it is included after Bootstrap v4.4 CSS is imported).