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.

Design issue while adding `showLeadingZeros = {true} `.

See original GitHub issue

showLeadingZeros = {true} property addes 0 outside of input type. This causes design issues.

<DatePicker 
value={this.state.date} 
onChange= {(value) => this.setState({ date: value })}
showLeadingZeros = {true}
/> 

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ParthPatwalaTAcommented, Sep 13, 2018

Also can you put ‘react-date-picker__button__input__day’, ‘react-date-picker__button__input__month’ and ‘react-date-picker__button__input__year’ in their seperate div and add 0 to their respective div? This way we can apply width and design for particular div elements.

1reaction
ParthPatwalaTAcommented, Sep 13, 2018

So in my code, it is causing a design issue. Date is displaying kind of like ‘o1 -o9 - 2019’. Generating extra space and all. Because if we apply design to the input field then it won’t affect to ‘0’. So it’s font-size, color and spacing will not change. How is it working in this demo? Additional 0 is properly set and there is no spacing issue and other design issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Javascript Event Delegtion -- Adding a timepicker to a popup ...
$('#time').on('click',{showPeriod: true,showLeadingZero: true},timepicker);. This binds a click listener to the #time element, ...
Read more >
@wojtekmaj/react-daterange-picker - npm package | Snyk
Add React-DateRange-Picker to your project by executing npm install ... disableCalendar, When set to true , will remove the calendar and the button...
Read more >
2ND/4 Flashcards - Quizlet
TRUE OR FALSE: Augmented reality tools are immersive, digital environments used for the design review of products. False.
Read more >
Custom Property Format in iLogic - Inventor - Autodesk Forums
ShowUnitsString=True oFormat.ShowLeadingZeros=True oFormat.ShowTrailingZeros=False NextoParameter. the enumerate type in iLogic need to add ...
Read more >
DateMonthDisplayFieldInfo Constructor(Boolean) | Spread Windows ...
In This Topic ... Public Function New( _ ByVal showLeadingZero As Boolean _ ) ... showLeadingZero: A bool value, if true the field's...
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