Comments (2)
We’re not going to do this. Even if you render a MaskedInput
without a mask, users will still likely take the hit of the additional lifecycle logic in here and it creates a very odd API, IMO.
from react-maskedinput.
I understand this. It is likely that the best solution (implemented by end-user of this lib) is to create a simple BasicInput component that just wraps an HTML input element, this way you can do simple things and treat them the same.
For example, in you want to get the value of an HTML input vs. a MaskedInput, you need to do something like:
let fieldInput = this.refs.fieldInput;
let fieldInputVal = fieldInput.value || findDOMNode(fieldInput).value;
but if you wrap a basic input as it's own component, you can treat it the same.
Cheers
from react-maskedinput.
Related Issues (20)
- Not able to set the default placeholder as an empty string HOT 3
- Optional characters
- Upgrade inputmask-core to last version
- defaultValue prop is not used?
- Shifting the existing input instead of rewriting -- possibly need an option
- Ability to edit disabled MaskedInput HOT 2
- Wrong Caret Position when using Android HOT 2
- Remove Legacy Lifecycle Methods HOT 1
- Pass raw value to redux-form HOT 4
- Hide separator characters or format Monay
- This repository is dead? HOT 3
- replace all characters with asterisk
- space remaining inside my MaskedInput despite margin=0, padding=0 and width=auto
- When addind masked-input to my application, the scrollTo() functions bugg.
- Warning with componentWillMount, componentWillReceiveProps and componentWillUpdate HOT 4
- Please release a new version that doesn't have componentWillUpdate warnings HOT 4
- Working with Microsoft IME keyboard
- backspace not working properly with microsoft swift keyboard (mobile)
- Skipping static content while typing on mobile (chrome , opera and ..) HOT 2
- copy past not working
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-maskedinput.