[ 
https://issues.apache.org/jira/browse/WICKET-5959?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14679981#comment-14679981
 ] 

Sven Meier commented on WICKET-5959:
------------------------------------

IE11 sends an "input" event, when the placeholder is shown:

http://stackoverflow.com/questions/19289396/jquery-input-event-fired-on-placeholder-in-ie

> HTML input placeholder text breaks AutoCompleteTextField in IE11
> ----------------------------------------------------------------
>
>                 Key: WICKET-5959
>                 URL: https://issues.apache.org/jira/browse/WICKET-5959
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-extensions
>    Affects Versions: 6.20.0
>         Environment: Windows 8.1 + Internet Explorer 11
>            Reporter: Remy Kaufmann
>            Assignee: Sven Meier
>         Attachments: quickstart.zip
>
>
> Reproduction steps are provided below:
> 1. Configure an AutoCompleteTextField so that the suggestion list shows on 
> focus gain, and shows even if the input is still empty.
> 2. Link the AutoCompleteTextField to an HTML input element that has a value 
> assigned to its "placeholder" attribute.
> 3. Embed the AutoCompleteTextField on a webpage, and open the webpage in 
> Internet Explorer 11.
> 4. Click on the HTML input so that it receives focus. Do not enter any text.
> 5. Click on an item from the AutoComplete dropdown list. Observe that nothing 
> happens.
> Opening the console reveals that an error has occurred in the 
> "getSelectedValue()" function in the "wicket-autocomplete.js" file. The error 
> is caused by the fact that the variable "selected" has a value of "-1", which 
> causes the "getSelectableElement(selected)" call to go wrong and return 
> "undefined".
> I have recreated the issue in a Quickstart.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to