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
Changing to wired breaks Joomla #33
Comments
I'm not aware of Joomla. Do you have a specific error or specific property that may not be working? |
Joomla does not recognize wired-input as an input. See example - http://sketch.starazure.com > Joomla > Login If you try to login, it thinks the fields are empty. Also in the page - http://sketch.starazure.com/index.php/joomla/register If I change wired-input to "input" it works. So back to my question - Is there a way I can use wired styles without changing my inputs to wired-inputs ? Ideally a css class would be more ideal. I am kind of stuck because my theme is based on hand drawn elements inspired by your wired js - and found this issue as its almost ready to be released. |
Checkout https://www.getpapercss.com i think that may suit you well |
That is a great alternative. Too bad I could not use Wired JS but thanks for the alternate solution. I will update my theme to use this. |
I'm sure with further investigation we could solve the Joomla issue as well. If I were to take a hunch, Joomla is scanning for particular tag names. Or it has some issues with shadowdom/custom elements. |
I was taking a closer look at paper css and its a mess. It overrides alerts, bootstrap colors, alerts and much more. So basically it will kill a Bootstrap theme because the author has added a lot of Bootstrap overrides. I have to try and solved this with wired js. Let me take a closer look but I am sure the issue is that Joomla looks for data passed in elements such as "input" and is not able to handle data from custom elements. |
This could be the issue: In my php file, the input is:
When it gets rendered, I see there is another input that gets generated inside wired-input with a different id as shown below:
|
That input is inside a Shadow DOM, so it's protected. How do you tell Joomla what controls to use for the form? Or does it pick them up automatically? |
This is how Joomla renders a field: The in my form field text.php file I have this: Similarly, I have password.php, textarea.php. email.php which needed to be updated with wired-input. I have a work around but does not work for emails This worked BUT it wanted to show a tooltip with error, I get javascript errors:
Update on paper js - Its a mess and being a template developer I dont want to hand over messy code to my downloaders. I like wired js more. I think my Joomla template can feature in "Built using Wired Js" section. Thanks for your help ! |
I'm not sure putting an input inside wired-input is actually doing what the right thing here. Wired-input will not start using that input that you provided. Wired elements are supposed to be stand alone controls. Why it doesn't work with joomla, I think it may be something different. When I get some time, I'll investigate further. Sorry, I'm not sure if I have a quick solution. |
Seem like you or joomla is adding an input control as a child of wired-element. You don't need to do that. Wired-input creates an input element automatically inside a |
I just tried another option but that did not work either. Joomla still does not recognize it as an input. I used jQuery as shown below. Php file:
JQuery: `$(function () { }) Result: When I remove the jQuery, thus removing wired-input, it works but as expected its not a wired input. |
I think the main problem here is that wired-input does not have the |
I did some reading, and I think what I'll have to do is pass the Though I'm still not sure if hat would work with a shadow-root. |
I just released a new build. |
I already use It does not work and still says empty password. Thanks for trying. |
can you check if the inside your has a |
Never mind, I just saw your site, and see that it is being set. Not sure what else to do here, and I dont really fancy learning joomla t the moment. :/ |
I understand. I don't know what to do either. |
I am using this in a custom Joomla template but changing "input" to "wired-input" breaks Joomla form. Joomla expects < input >. Is there a way I can achieve the wired effect by using a css class instead of changing them to "wired-***" ?
The text was updated successfully, but these errors were encountered: