EasyUI Forum
May 11, 2024, 04:37:35 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: tabIndex and focus on LinkButton  (Read 4361 times)
chrwei
Full Member
***
Posts: 219


View Profile Email
« on: April 08, 2020, 01:29:34 PM »

tabindex seems to be ignored on linkbutton, the order skips it and them comes back to it after all the tabIndex specified controls are tabbed through.

there is also no focus indication on the buttons.

Code:
import React, { useState } from 'react';
import './App.css';
import { LinkButton, Form, FormField, TextBox } from 'rc-easyui';

function App() {
const [model, setModel] = useState({
times: 0,
myBox:"some text"
});

function handleClick() {
setModel({times: model.times+1, myBox:"clicked " + (model.times+1)})
}

return (
<div className="App">
<Form
errorType="tooltip"
model={model}
labelWidth={120}
labelAlign="right"
>
<FormField name="myBox" label="Box:">
<TextBox value={model.myBox} tabIndex={1} />
</FormField>
<FormField >
<LinkButton onClick={handleClick} tabIndex={2}>tab to here and press enter</LinkButton>
</FormField>
<FormField name="myBox2" label="Box2:">
<TextBox value={model.myBox2} tabIndex={3} />
</FormField>
</Form>
</div>
);
}

export default App;
Logged
jarry
Administrator
Hero Member
*****
Posts: 2264


View Profile Email
« Reply #1 on: April 10, 2020, 08:50:01 PM »

Please update to the newest version.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!