Skip to content

Commit

Permalink
Remove defaultValue
Browse files Browse the repository at this point in the history
With the changes making most events synchronous, there should be no
more race condition when using the value attribute
  • Loading branch information
evancz committed Apr 27, 2018
1 parent e399477 commit 4912804
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions src/Html/Attributes.elm
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module Html.Attributes exposing
( style, property, attribute, map
, class, classList, id, title, hidden
, type_, value, defaultValue, checked, placeholder, selected
, type_, value, checked, placeholder, selected
, accept, acceptCharset, action, autocomplete, autofocus
, disabled, enctype, list, maxlength, minlength, method, multiple
, name, novalidate, pattern, readonly, required, size, for, form
Expand Down Expand Up @@ -30,7 +30,7 @@ just search the page for `video` if you want video stuff.
@docs class, classList, id, title, hidden
# Inputs
@docs type_, value, defaultValue, checked, placeholder, selected
@docs type_, value, checked, placeholder, selected
## Input Helpers
@docs accept, acceptCharset, action, autocomplete, autofocus,
Expand Down Expand Up @@ -441,15 +441,6 @@ value =
stringProperty "value"


{-| Defines an initial value which will be displayed in an `input` when that
`input` is added to the DOM. Unlike `value`, altering `defaultValue` after the
`input` element has been added to the DOM has no effect.
-}
defaultValue : String -> Attribute msg
defaultValue =
stringProperty "defaultValue"


{-| Indicates whether an `input` of type checkbox is checked. -}
checked : Bool -> Attribute msg
checked =
Expand Down

0 comments on commit 4912804

Please sign in to comment.