Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.

Fix: integer and decimal widgets remain visible when form language changes #937

Merged

Conversation

eyelidlessness
Copy link
Contributor

Fixes enketo/enketo-express#507. I added a comment explaining the nature of the fix.

The seemingly unrelated change in form.js fixes a bug I discovered when I explored changing loadForm to handle appending the form element, where explicitly passing null as options passes the object check, because null is... of course an object. It seemed a small enough tangential fix that it wasn't worth a whole separate PR.

Also fixes and unifies changed language behavior, and re-formatting values when decimal characters change. Moves visibility fix to styles, as it's a core stylesheet and should be safe to change there. It's not yet clear what a safe but more specific selector would be, but it is clear that transformer doesn't set translation `lang` atttributes directly on question elements
@lognaturel lognaturel merged commit 20d76ac into enketo:master Dec 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Integer and decimal widgets disappear after switching language
2 participants