Uploaded image for project: 'RichFaces'
  1. RichFaces
  2. RF-13965

rich:select popup not displayed after clearing whole input

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 4.5.2
    • Fix Version/s: 4.5.3
    • Component/s: component-selects
    • Labels:
      None
    • Environment:
    • Steps to Reproduce:
      Hide
      • Go to latest showcase (or deploy Metamer and go to this page)
      • Type "a" (with Showcase use the last select)
      • When popup appears select Alaska & blur (click elsewhere on the page)
      • Now mark the whole input field with mouse and press "a" again
        • EXPECTED: same popup should be present with all the matching options
        • ACTUAL: no popup

      NOTE: same behavior can be achieved once you delete the input field via JS (used in page fragment when typing into field - default results in JS)

      Show
      Go to latest showcase (or deploy Metamer and go to this page ) Type "a" (with Showcase use the last select) When popup appears select Alaska & blur (click elsewhere on the page) Now mark the whole input field with mouse and press "a" again EXPECTED: same popup should be present with all the matching options ACTUAL: no popup NOTE: same behavior can be achieved once you delete the input field via JS (used in page fragment when typing into field - default results in JS)

      Description

      When you use rich:select with manual input and dynamic list fetching there is a problem if the whole input gets cleared at once or replaced with the same letter.
      The problem was detected when input field gets cleared with JS (page fragments allow this), however it can be done manually with just mouse too. Once using backspace or delete to clear the input field, the options appear correctly.

      See steps to reproduce for more details.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                michpetrov Michal Petrov
                Reporter:
                manovotn Matěj Novotný
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: