Amphtml: using input-debounced or change events got event.value null when the input is type search

Created on 25 Jun 2017  路  6Comments  路  Source: ampproject/amphtml

What's the issue?

I was trying to use input-debounced or change events but the event.value is always null when the input is [type="search"].

I don't know if this issue is a bug or a feature request

How do we reproduce the issue?

In this repo https://github.com/mauricionr/pwamp

Thanks!

High Priority Bug

Most helpful comment

Sorry just saw this. Needs to be whitelisted in action-impl.js. Quick fix coming up. 馃槂

All 6 comments

/to @cvializ

@mauricionr looks like a bug to me. Not sure what makes [type=search] special, we will investigate.

@aghassemi the documentaion said that a few types are currently supported

https://github.com/ampproject/amphtml/blob/master/spec/amp-actions-and-events.md#input-elements

this other type make a better user exeprience on mobile.

i guess the other types also should support these events

types like

[type="tel"]
[type="number"]
[type="email"]
[type="search"]
[type="date"]
[type="datetime"]

what do you think?

Thanks!

I am able to reproduce. Initial inspection shows that it's a bind issue, but I wasn't able to find anything after a quick look. I can keep looking, and @choumx maybe you can look too and see if your bind expertise notices anything that might cause type="search" to give a null value while type="text" gives the correct value.

Pinging this for @choumx

Sorry just saw this. Needs to be whitelisted in action-impl.js. Quick fix coming up. 馃槂

Was this page helpful?
0 / 5 - 0 ratings

Related issues

edhollinghurst picture edhollinghurst  路  3Comments

gmajoulet picture gmajoulet  路  3Comments

aghassemi picture aghassemi  路  3Comments

sryze picture sryze  路  3Comments

Download picture Download  路  3Comments