Reset button for drawing/signature and upload not working #990
Comments
|
in dialog.js, the Could be an aliasify issue. |
very mysterious. If I copy gui.js to gui.1.js and change require('./gui) to require('./gui.1') all is good again. This seems like some kind of interaction with another module with the same name. |
You can trick the system into a correct build by calling require('../dialog') from e.g. the main-webform.js entry file. |
Leaving this open. I was not able to find the actual cause of this JS build issue yet. I added a temporary workaround for now. |
@MartijnR - The Reset Button is generally working now, but it is not considering whether the form is open in edit/review-only/read-only mode. We expect that the file should be able to be reset in edit mode, but not review-only or read-only mode. However, we are observing that the reset button is present and active in review-only and read-only mode. The button should be disabled in these modes or not visible at all. (Note that review-only mode is actually submitting the file removal back to us, but read-only is not submitting it.) |
ah yes, of course. That was never implemented (including geo widgets). |
@MartijnR - Ideally, the Reset button and Undo button would not be visible in review-only and read-only modes. The Download button should still be visible and functional in all modes. |
|
working too fast. Reset no longer functional in drawings in note-only mode, but still visible. Properly hidden in file upload widgets.
|
fixed in |
reopening as this this needs a proper fix (without the temporary workaround) |
I think this is because of the way gui.js self-initializes. |
Finally figured it out. It's very subtle so here is the post-op for posterity: TL/DR; it's a circular reference
Commenting out the require('../core/print') eliminates the issue. The fix:
|
… with null and false respectively, kobotoolbox/enketo-express#990
…to-core modal dialogs, closes kobotoolbox#990
The text was updated successfully, but these errors were encountered: