Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyFilter does not work for new component <p:chips> #2125

Closed
amoralico opened this issue Feb 28, 2017 · 1 comment
Closed

KeyFilter does not work for new component <p:chips> #2125

amoralico opened this issue Feb 28, 2017 · 1 comment
Assignees
Labels
enhancement Additional functionality to current component
Milestone

Comments

@amoralico
Copy link

  1. Environment
    Primefaces 6.1.RC1
  • Tomcat 8
  • Chrome, Firefox, all i guess

2) Expected behavior

Try to use <p:keyfilter for="chips" mask="pint"> associated with the new component <p:chips id="chips"> to restrict key entry only for digits.

3) Actual behavior

I can entry any character.

5) Sample XHTML

<p:chips id="chips">
...
</p:chips>
<p:keyfilter for="chips" mask="pint" />

I found a patch for this problem by overriding the keyfilter (javascript) widget. In the init function
replace the jquery selector ':not(:submit):not(:button):input:visible:enabled:first' by ':not(:submit):not(:button):input:enabled:first'

tandraschko added a commit that referenced this issue Mar 2, 2017
@tandraschko
Copy link
Member

Would you please try a trunk build? I modified the keyfilter java renderer, it might work now.

@tandraschko tandraschko added this to the 6.1.RC2 milestone Mar 12, 2017
@tandraschko tandraschko self-assigned this Mar 12, 2017
@tandraschko tandraschko added the enhancement Additional functionality to current component label Mar 12, 2017
@melloware melloware modified the milestones: 6.1.RC2, 6.1 Jan 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Additional functionality to current component
Projects
None yet
Development

No branches or pull requests

3 participants