This repository was archived by the owner on Dec 11, 2017. It is now read-only.
Only display mask delimiters when reached if empty placeholder#375
Closed
kcaran wants to merge 1 commit intodigitalBush:masterfrom
Closed
Only display mask delimiters when reached if empty placeholder#375kcaran wants to merge 1 commit intodigitalBush:masterfrom
kcaran wants to merge 1 commit intodigitalBush:masterfrom
Conversation
…is set to the empty string.
|
Excellent addition. What would need to be done to have it behave slightly differently: Example (using phone mask): INPUT (user hasn't typed anything): As you can see in above example, it'd be cleaner, I think. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See issue 361
https://github.com/digitalBush/jquery.maskedinput/issues/361
If the placeholder parameter is set to the empty string, don't display delimiting characters in the mask until they are reached by the input. For example, a (999) 999-9999 mask would display:
(
(6
(61
(617)
(617) 8
I've created a new test file, NoPlaceholder.Spec.js for this.