Skip to content

Commit

Permalink
added onkeypress to calendar field
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Grand committed Feb 17, 2016
1 parent 4d96d45 commit d818ea0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/elements/element_calendar.erl
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ render_element(Record) ->
{<<"step">>,Record#calendar.step},
{<<"type">>, <<"calendar">>},
{<<"pattern">>,Record#calendar.pattern},
{<<"placeholder">>,Record#calendar.placeholder} | Record#calendar.data_fields
{<<"placeholder">>,Record#calendar.placeholder},
{<<"onkeypress">>, nitro:js_escape(Record#calendar.onkeypress)} | Record#calendar.data_fields
],
wf_tags:emit_tag(<<"input">>, nitro:render(Record#calendar.body), List).

Expand Down

0 comments on commit d818ea0

Please sign in to comment.