EasyUI Forum
April 27, 2024, 03:07:48 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
  Home Help Search Login Register  
  Show Posts
Pages: 1 ... 4 5 [6] 7 8 ... 15
76  General Category / EasyUI for React / "form-field-focused" class on: April 08, 2020, 01:31:31 PM
CheckBox and LinkButton inside a FormField component do not add the form-field-focused class to the parent div like other components do.
77  General Category / EasyUI for React / tabIndex and focus on LinkButton 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;
78  General Category / EasyUI for React / CheckBox with tabIndex inconsistencies 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.
79  General Category / EasyUI for React / Re: ComboBox ref not working? on: April 03, 2020, 08:13:06 AM
perfect, thanks!
80  General Category / EasyUI for React / Re: ComboBox ref not working? on: April 02, 2020, 09:05:12 AM
Code:
import React, { useRef, useState } from 'react';
import './App.css';
import { Form, FormField, TextBox } from 'rc-easyui';

function App() {
const refBox = useRef(null);
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 ref={ref => {
console.log("TextBox", ref)
refBox.current = ref
}}  value={model.myBox} />
</FormField>
</Form>
</div>
);
}

export default App;

the "TextBox" console log never appears.  remove 'errorType="tooltip" 'and it appears.  this affect combobox too, and likely all comments based on InputBase under a form.
81  General Category / EasyUI for React / Re: ComboBox ref not working? on: March 31, 2020, 12:27:42 PM
this affects textbox too

Code:
<Form errorType="tooltip">
    <FormField name="myBox" label="Box">
        <TextBox ref={ref => {
            console.log("TextBox", name, ref)
            refBox.current = ref
        } } />
    </FormField>
</Form>

it doesn't even console.log, at all.
82  General Category / EasyUI for React / Re: tabIndex missing on CheckBox? on: March 31, 2020, 11:58:57 AM
that works for the checkbox but not the button.

is there a key that toggles the checkbox, like the standard HTML checkbox the spacebar will toggle it.  this doesn't seem to work
83  General Category / EasyUI for React / Re: tabIndex missing on CheckBox? on: March 27, 2020, 08:25:23 AM
LinkButton also doesn't have tabIndex
84  General Category / EasyUI for React / tabIndex missing on CheckBox? on: March 27, 2020, 07:49:16 AM
or at least it doesn't work, and isn't i the docs.

oversight or intentional?
85  General Category / EasyUI for React / Re: ComboBox ref not working? on: March 27, 2020, 07:04:59 AM
add errorType="tooltip" to the Form and the refs will stop working.
86  General Category / EasyUI for React / combobox "blank" item on: March 18, 2020, 01:50:06 PM
I'd like to have a blank item as a way for a user deselect.  the issue is, at least in chrome, that the computed height is zero, at least in Chrome.  the line-height property is still set at 20px, but chrome seems to be ignoring it.

any suggestions on working around that?
87  General Category / EasyUI for React / Re: ComboBox data-value relation on: March 12, 2020, 06:05:10 AM
ended up being a whitespace issue.  thanks.
88  General Category / EasyUI for React / Re: ComboBox ref not working? on: March 12, 2020, 06:03:49 AM
that does work for me, and mine works when I pull it out as a minimal example.

it's not working when combined with all my other crap.

where does the k1 come from?  it's not from my code.  that's the only difference I can see.
89  General Category / EasyUI for React / Re: ComboBox ref not working? on: March 11, 2020, 03:00:50 PM
well, I'm at a loss.  I pulled my component out to a test app and it's not null, and does drop.  in my app it's still null and not working.  I'm using the component exactly as it is in my app, copy/pasted.

the only difference is something I see in the chrome react-devtools, in the one that works the component inspector shows like

Code:
ComboField
 . t
  . Context.Consumer
     t
   . t key=".0"
   . t key=".1"
.0 is my tooltip  and .1 is the dropdown

in the one that doesn't work it's like
Code:
ComboField
 . t
  . Context.Consumer
     t
   . t key=".0"
    . t key="k1"
   . t key=".1"
    . t key="k1"

the k1 items are my tooltop and drop down.

I've tried reproducing my system with just a combo field and I cannot get the k1's to show up there.  the only thing I haven't put in is the ApolloProvider, that really shouldn't affect this, should it?
90  General Category / EasyUI for React / ComboBox data-value relation on: March 10, 2020, 10:02:53 AM
I've got an issue where for various reasons my ComboBox value is getting set before the data object is populated.  once the object is set, the displayed value does not update.

is that something the ComboBox should be handling, or do I need to do something different to make sure the value isn't set until the object is populated?
Pages: 1 ... 4 5 [6] 7 8 ... 15
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!