Skip to content

Commit

Permalink
Merge pull request #11 from newmana/master
Browse files Browse the repository at this point in the history
elm-format 0.7.0-exp incorrectly changes imports to make code not compile
  • Loading branch information
abadi199 authored Mar 23, 2018
2 parents 16939ba + 367a465 commit 65dce10
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/Input/Number.elm
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@ module Input.Number exposing (Options, StringOptions, input, inputString, defaul
-}

import Html exposing (Attribute, Html)
import Html.Attributes exposing (style, type_)
import Html.Events exposing (onWithOptions, keyCode)
import Html.Attributes as Attributes exposing (value)
import Html.Attributes as Attributes exposing (value, style, type_, min, max)
import Char
import String
import Json.Decode as Json
Expand Down Expand Up @@ -154,14 +153,14 @@ input options attributes currentValue =
maxAttribute =
options.maxValue
|> Maybe.map toString
|> Maybe.map Html.Attributes.max
|> Maybe.map Attributes.max
|> Maybe.map toArray
|> Maybe.withDefault []

minAttribute =
options.minValue
|> Maybe.map toString
|> Maybe.map Html.Attributes.min
|> Maybe.map Attributes.min
|> Maybe.map toArray
|> Maybe.withDefault []
in
Expand Down Expand Up @@ -229,14 +228,14 @@ inputString options attributes currentValue =
maxAttribute =
options.maxValue
|> Maybe.map toString
|> Maybe.map Html.Attributes.max
|> Maybe.map Attributes.max
|> Maybe.map toArray
|> Maybe.withDefault []

minAttribute =
options.minValue
|> Maybe.map toString
|> Maybe.map Html.Attributes.min
|> Maybe.map Attributes.min
|> Maybe.map toArray
|> Maybe.withDefault []
in
Expand Down

0 comments on commit 65dce10

Please sign in to comment.