-
Notifications
You must be signed in to change notification settings - Fork 1
don't use mask when native input number is supported #2
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
base: master
Are you sure you want to change the base?
Conversation
our mask doesn't support decimal values. Also extend input interface to allow others values to be passed (min, max, patterns, etc)
@@ -110,7 +110,8 @@ | |||
(defn- mask-handler-selector | |||
[target owner state] | |||
(condp = (:input-format state) | |||
"numeric" :numeric | |||
;; don't use custom mask if native control is supported | |||
"numeric" (if (utils/browser-support-input-type? "number") :unmasked :numeric) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no entiendo la utilidad de esto, en que caso el control en clojurescript precisa esta distinción?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
digamos esto no es client-side, es en los navegadores del banco digamos
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
claro, nosotros usamos los widgets desde nuestra UI, @fapenia usa su js desde el cliente
entonces? para que es este toque?
… On May 5, 2017, at 1:45 PM, Sebastián Moreno ***@***.***> wrote:
@kernelp4nic commented on this pull request.
In src/om_widgets/textinput.cljs:
> @@ -110,7 +110,8 @@
(defn- mask-handler-selector
[target owner state]
(condp = (:input-format state)
- "numeric" :numeric
+ ;; don't use custom mask if native control is supported
+ "numeric" (if (utils/browser-support-input-type? "number") :unmasked :numeric)
claro, nosotros usamos los widgets desde nuestra UI, @fapenia usa su js desde el cliente
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:)
Las condiciones no soportan valores decimales y BG no puede condicionar contra unos porcentajes. Ojo que este repo es público :) |
our mask doesn't support decimal values. Also extend input interface to allow others values to be passed (min, max, patterns, etc)