You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Sven Meier (JIRA)" <ji...@apache.org> on 2015/08/10 14:57:45 UTC

[jira] [Resolved] (WICKET-5959) HTML input placeholder text breaks AutoCompleteTextField in IE11

     [ https://issues.apache.org/jira/browse/WICKET-5959?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sven Meier resolved WICKET-5959.
--------------------------------
       Resolution: Fixed
    Fix Version/s: 7.1.0
                   6.21.0

"input" event is not reliable in IE (even in versions >=11), so we're using the old solution with "keydown keyup cut paste" now.

> 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
>             Fix For: 6.21.0, 7.1.0
>
>         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)