EasyUI Forum
April 23, 2024, 12:13:45 AM *
Welcome, Guest. Please login or register.

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


View Profile Email
« on: April 03, 2020, 09:22:07 AM »

test code, using the stock material theme if that matters:
Code:
import React, { useRef, useState } from 'react';
import './App.css';
import { CheckBox, Form, FormField, TextBox } from 'rc-easyui';

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

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 name="myCheck" label="Check me:" labelPosition="after">
<CheckBox tabIndex={2} checked={model.myCheck} />
</FormField>
</Form>
</div>
);
}

export default App;

without tabIndex, the checkbox gets focus but there is no indication that it has focus.  pressing space bar does toggle the checkbox as expected.

with tabIndex, the checkbox gets a little highlight when it has focus, but pressing spacebar does nothing.

if it can get the highlight AND space bar toggle no matter if tabIndex is set that would be perfect.
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: April 06, 2020, 08:25:49 PM »

Please try to 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!