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

Create ic-disable-inputs attribute #284

Open
wants to merge 20 commits into
base: development
Choose a base branch
from

Conversation

zodman
Copy link

@zodman zodman commented May 2, 2019

On a request we closestAttrValue('ic-disable-inputs') of the element submitting. If it is true, we search for all inputs below that element and disable them.

Then you could put ic-disable-inputs on a form and have it disable all input elements below, put it on a single input, etc.

@zodman
Copy link
Author

zodman commented Jun 4, 2019

some can check this?¿

@zodman
Copy link
Author

zodman commented Jun 4, 2019

@chg20 can check it plz!

@1cg
Copy link
Contributor

1cg commented Jun 5, 2019

I'm a little worried that this would cause a big change in behavior. Maybe it would be OK if the element type were verified?

@zodman
Copy link
Author

zodman commented Jun 5, 2019

@chg20 done!

@zodman
Copy link
Author

zodman commented Jun 13, 2019

@chg20 can you take a look! thanks in advance.

@zodman
Copy link
Author

zodman commented Jul 23, 2019

ping!

@1cg
Copy link
Contributor

1cg commented Aug 9, 2019

Can I ask that this be reworked and expanded a bit?

I think the right behavior is to add a new attribute: ic-disable-inputs="true"

On a request we closestAttrValue('ic-disable-inputs') of the element submitting. If it is true, we search for all inputs below that element and disable them.

Then you could put ic-disable-inputs on a form and have it disable all input elements below, put it on a single input, etc.

Does this sound reasonable?

I also would like a test for this if possible.

@zodman
Copy link
Author

zodman commented Oct 5, 2019

for the hack October https://hacktoberfest.digitalocean.com/ i will working with this!

@1cg
Copy link
Contributor

1cg commented Oct 8, 2019 via email

@1cg
Copy link
Contributor

1cg commented Oct 11, 2019

@zodman I'm planning on doing a realase at the end of hacktober, let me know if you need any help or encouragement getting this done. I think it is a good feature!

@1cg 1cg changed the title add disabled attrib Create ic-disable-inputs attribute Oct 11, 2019
@1cg
Copy link
Contributor

1cg commented May 12, 2020

OK! I will integrate this, but it needs docs!

1cg and others added 3 commits May 12, 2020 12:18
…pm_and_yarn/lodash-4.17.15

Bump lodash from 4.13.1 to 4.17.15
…pm_and_yarn/handlebars-4.5.3

Bump handlebars from 4.0.5 to 4.5.3
@zodman zodman changed the base branch from master to development May 13, 2020 02:37
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