albfernandez / richfaces

RichFaces - JSF component framework
GNU Lesser General Public License v2.1
16 stars 7 forks source link

inplaceInput component is activated by click only and not with Tab key #82

Open mkrivan opened 3 weeks ago

mkrivan commented 3 weeks ago

First of all I appreciate all your effort and work on richfaces.

I have found just one strange behavior with inplaceInput component:

<h:form>
            <rich:inplaceInput id="first" onfocus="console.log('first')"
                               value="#{richDemoBean.first}"
                               inputWidth="20">
                <f:ajax/>
            </rich:inplaceInput>
            xxx
            <rich:inplaceInput id="second" onfocus="console.log('second')"
                               value="#{richDemoBean.second}"
                               inputWidth="20">
                <f:ajax/>
            </rich:inplaceInput>
</h:form>

The richDemoBean provide only the two simple String values (first, second).

On this example when I run with your library 4.6.21 if I click on each input it is activated, but when the first one is active and I press the Tab key the second input is not activated only by clicking on it. No any focus activation happens.

If I use the latest 4.3.7 richfaces library the Tab key is also does the job and onfocus is called.

Would you have any idea what could be the problem? My faces version is 2.2.20 moyara.

Many thanks