Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

space remaining inside my MaskedInput despite margin=0, padding=0 and width=auto #134

Open
Hocoh opened this issue Mar 28, 2020 · 0 comments

Comments

@Hocoh
Copy link

Hocoh commented Mar 28, 2020

here the demo https://stackblitz.com/edit/react-gunzft?file=index.js.

Why MaskedInput want to put some space at the end of the element? With standard's input the width fit to the content in this configuration.

Here m ReactJS snippet:

<MaskedInput 
					class="date"
					mask="11-11-1111" 
					name="date" 
					size="10" 
          value={this.state.date}
					placeholder="dd-mm-yyyy" 
					onChange={this.handleChange}
        />

here my CSS' snippet:

.date{
	height:4.5vh;
	text-align:left;
	font-size:1.05em;
	width:auto;
		margin:0;
		padding:0;
}

How can I use MaskedInput so it fit my content?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant