-
Notifications
You must be signed in to change notification settings - Fork 209
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
Fixed Save Button #562
Fixed Save Button #562
Conversation
Signed-off-by: tech4GT <varun.gupta1798@gmail.com> dist update Revert "dist update" This reverts commit 9ee2a98.
@tech4GT please have a look at this. |
Sorry for the update dist extra commit, I somehow screwed up my local dist files and had to squash some commits. |
I found out an issue. This doesn't work for select type input, the initial value is different and changes after some time. |
It also didn't use to update the initValue so saving more than once would break the save buttons. But this is fixed now in 'fix update initValue' commit. Select is still an issue though. |
Update: I fixed the select type inputs by moving the event listeners to the end of onComplete function. |
@tech4GT I have a suggestion, Can you open a new issue to change all the module inputs types to match their actual html valid types. For e.g. angle for rotate module is 'integer' but it should be number so that increment and decrement buttons appear on pc browsers. Also for modules like resize the percentage is a 'string' not text. |
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.
@harshkhandeparkar You can go ahead and open the issue, that'll be great! Also can you please share a gif using some module which takes text based input like saturation? Thanks! :)
I actually fixed this. Committing in a min |
Hey I found something else. The form can be submitted through enter even though the button is disabled. |
Please don't merge this PR. I'm going to fix the enter button submit issue. I'm going to be busy for a few days. Will fix this next year 😋 |
I had to add the |
This solution works but I noticed that it slows down the browser significantly. What should I do?. @publiclab/reviewers please help. |
@jywarren can we use es6 in the example page code? |
What browsers is es6 compliant in? If almost all, then sure, but if there's an easy alternative, maybe not? |
I think arrow functions and template literals are supported by all
modern(>IE) browsers. https://kangax.github.io/compat-table/es6/
…On Mon 7 Jan, 2019, 12:05 AM Jeffrey Warren ***@***.*** wrote:
What browsers is es6 compliant in? If almost all, then sure, but if
there's an easy alternative, maybe not?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#562 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AhKOn8mwVZj7f8s29Ohowj5EaQTj8Na6ks5vAkHbgaJpZM4Zi5Br>
.
|
Thanks.
|
@jywarren how is my suggestion about a new module above 👆 👆 |
Hi, sure - perhaps you could open a new issue for that? it could be called |
Thanks for the green signal. I will open the issue tomorrow. |
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.
This looks good to me. Great work! :)
Thanks @Mridul97 |
Awesome, thank you!!! |
Fixes #340
Save button gets enabled whenever there is a change in the value of the input.
Make sure these boxes are checked before your pull request (PR) is ready to be reviewed and merged. Thanks!
rake test
@publiclab/reviewers
for help, in a comment belowIf tests do fail, click on the red
X
to learn why by reading the logs.Please be sure you've reviewed our contribution guidelines at https://publiclab.org/contributing-to-public-lab-software
Thanks!