Replies: 1 comment 2 replies
|
i didn't know about this section of github. thanks for moving this. I see that the docs around compilers was updated since last i looked at it. there is an attribute that looks like it could help me with one issue. would it be possible to use this to prevent the default autosubmit compiler from running, or maybe interact with it? |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Bug description
I know that autosubmit is basically 1 line of code, and i'm not sure what the intentions of this feature are for the next version of unpoly, but I feel like it needs some help or probably to be removed completely and replaced with something like a guide to make features like it.
problems:
some of these issues can be solved with documentation, and some of these seem like they would require adding a lot of code to support them which would increase the complexity of autosubmit by a lot.
i run into poorly behaved components a lot and i find myself adding autosubmit code for them, but now i have to be careful about the autosubmit attribute with respect to these components or i get eventlisteners i don't want. it would be really nice if my fixes would work with the autosubmit compiler somehow.
it would also be nice if autosubmit wouldn't add more than 1 eventlistener per input, even when used incorrectly (nesting). this would probably need a global mapping, but that type of structure would probably make it easier to fix the problem i mentioned in the previous paragraph.
also, it may be interesting to add autosubmit to things that aren't inputs (content editable stuff, canvas, mouse). i'm not really sure what that would look like, but i think that would be where documentation/guides would be the approach to take.
All reactions