-
Notifications
You must be signed in to change notification settings - Fork 73
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
[show-all-data] Updated js logic to include picklist feature #419
base: releaseCandidate
Are you sure you want to change the base?
[show-all-data] Updated js logic to include picklist feature #419
Conversation
Updated css to use input id instead of textarea
Hi @waliasandeep I understand the need of visualising and selecting a value from the picklist field but I would like to keep the possibility to paste data as we have in the current behaviour. |
Hi @tprouvot , sure I can look into a way that allows users to paste data. |
Hi @tprouvot , |
This is great thank you ! |
Sure @tprouvot . Have added back that behaviour now. |
Great thank you @waliasandeep ! Is it something you want to address in this PR ? |
Hi @tprouvot , |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @waliasandeep for the updates, here some comments about little details.
During my test I've seen that the input button under the picklist display the value which can be weird for the user
@@ -1451,7 +1459,7 @@ class FieldValueCell extends React.Component { | |||
let {row} = this.props; | |||
if (row.tryEdit()) { | |||
let td = e.currentTarget; | |||
row.rowList.model.didUpdate(() => td.querySelector("textarea").focus()); | |||
row.rowList.model.didUpdate(() => td.querySelector("#input-field").focus()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of using querySelector, could you use refs ?
row.rowList.model.didUpdate(() => td.querySelector("#input-field").focus()); | |
row.rowList.model.didUpdate(() => this.refs.inputField.focus()); |
You can find other examples in the code
h("option", { value: option.value, key: option.value }, option.label) | ||
) | ||
), | ||
h("input", { type: "text", placeholder: "add/select a value", value: row.dataEditValue, onChange: this.onDataEditValueInput, onKeyDown: this.onKeyDown, id: "input-field", style: { width: 'calc(100% - 40px)'}}, null), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would prefer to avoid using style property directly
Describe your changes
Issue ticket number and link
Checklist before requesting a review