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

fix: Handle questions props as props and not as attrs #1763

Merged
merged 1 commit into from
Oct 30, 2023

Conversation

susnux
Copy link
Collaborator

@susnux susnux commented Oct 25, 2023

Fixed errors reported in dev console:

could not invoke event listener TypeError: this.sharedForms[sharedFormIndex] is undefined

We should handle properties as properties and no as attributes.
This also refactors the code a bit to remove code duplication across questions.

@susnux susnux added bug Something isn't working javascript Javascript related ticket 3. to review Waiting for reviews labels Oct 25, 2023
@susnux susnux requested review from Chartman123 and jotoeri October 25, 2023 23:44
@Chartman123 Chartman123 added this to the 3.4 milestone Oct 26, 2023
Copy link
Collaborator

@Chartman123 Chartman123 left a comment

Choose a reason for hiding this comment

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

Looks good, couldn't find any problems when testing the frontend.

What I noticed in edit view: As soon as you enter edit mode for the title or a question, all fields switch to edit mode. Is this intended as a preparation of implementing the a11y improvements?

Co-authored-by: Ferdinand Thiessen <opensource@fthiessen.de>
Co-authored-by: Christian Hartmann <chris-hartmann@gmx.de>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@susnux susnux force-pushed the fix/props-and-attrs branch from 925e895 to 654aac4 Compare October 30, 2023 17:59
@susnux
Copy link
Collaborator Author

susnux commented Oct 30, 2023

Squashed and fixed the commend, good to merge now 👍

@Chartman123 Chartman123 merged commit 193f322 into main Oct 30, 2023
@Chartman123 Chartman123 deleted the fix/props-and-attrs branch October 30, 2023 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews bug Something isn't working javascript Javascript related ticket
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants