Skip to content
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

EditableField types and tests #240

Merged
merged 7 commits into from
Jul 10, 2023
Merged

Conversation

jeffdaley
Copy link
Contributor

@jeffdaley jeffdaley commented Jun 27, 2023

This is the broader result of the #243 bug: more precisely typed and tested CustomEditableField components.

@jeffdaley jeffdaley changed the title Fix CustomEditableField bug EditableField types and tests Jun 27, 2023
@@ -288,7 +288,6 @@
@field={{field}}
@attributes={{attributes}}
@onChange={{perform this.save field}}
@updateFieldValue={{this.updateCustomFieldValue}}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This wasn't being used (anymore?) as far as I could tell.


export const FOCUSABLE =
'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])';

export default class EditableField extends Component {
@tracked editing = false;
@tracked element = null;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

element is a protected propertyName according to Glint/TS so I changed it to el

@jeffdaley jeffdaley marked this pull request as ready for review June 29, 2023 01:28
@jeffdaley jeffdaley requested a review from a team as a code owner June 29, 2023 01:28
@jeffdaley jeffdaley merged commit ebee3e0 into main Jul 10, 2023
2 checks passed
@jeffdaley jeffdaley deleted the jeffdaley/people-select-investigation branch July 10, 2023 22:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants