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

Float-label does not work properly for InputMask #516

Closed
mspclaims opened this issue Jul 21, 2018 · 1 comment
Closed

Float-label does not work properly for InputMask #516

mspclaims opened this issue Jul 21, 2018 · 1 comment
Assignees
Labels
Type: Bug Issue contains a defect related to a specific component.
Milestone

Comments

@mspclaims
Copy link

mspclaims commented Jul 21, 2018

I'm submitting a ...

[x] bug report

Plunkr Case (Bug Reports)
Please check Plunkr: https://next.plnkr.co/edit/UCy0LSr4z72Hd6TS

Current behavior
When user enters data into InputMask that uses ui-float-label and focus leaves the input, label floats back into the input control as if no data was entered.

Expected behavior
Label should stay outside of the inpit box.

Minimal reproduction of the problem with instructions
Demo provided at https://next.plnkr.co/edit/UCy0LSr4z72Hd6TS

Please tell us about your environment:
Windows 7, Visual Studio Code

  • React version:
    Latest React version

  • PrimeReact version:
    Latest PrimeReact version

  • Browser:
    Chrome, FF

  • Language:
    ES6/7

@BorisKhapilin
Copy link

BorisKhapilin commented Aug 2, 2018

The same problem. Float label falls down onto the input even when mask completed.
<span className="ui-float-label">
<InputMask
value={this.state.value}
mask={this.props.options.mask}
unmask={true}
style={this.props.inputStyle || this.inputStyle}
id={this.props.options.id}
onChange={this.onChange}
/>
<label htmlFor={this.props.options.id}>{this.props.options.caption}</label>
</span>

@cagataycivici cagataycivici self-assigned this Aug 28, 2018
@cagataycivici cagataycivici added the Type: Bug Issue contains a defect related to a specific component. label Aug 28, 2018
@cagataycivici cagataycivici added this to the 2.0.0-beta.4 milestone Aug 28, 2018
@cagataycivici cagataycivici changed the title ui-float-label does not work properly for InputMask Float-label does not work properly for InputMask Sep 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a defect related to a specific component.
Projects
None yet
Development

No branches or pull requests

3 participants