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

Get the DOM of a component with tagName="" #13798

Closed
sourvb opened this issue Jul 7, 2016 · 6 comments
Closed

Get the DOM of a component with tagName="" #13798

sourvb opened this issue Jul 7, 2016 · 6 comments

Comments

@sourvb
Copy link

sourvb commented Jul 7, 2016

Hi,
I am setting tagName="" in my component. I cannot use any tagName, or else it will break the my page style. I want to access the DOM of that component. Using this.$() throws an error saying object not available for tagName=="". Is there any solution for this?

@sourvb sourvb changed the title HiI am setting tagName="" in my component. But I cannot access the DOM by this.$(). The default tagName (div) is ruining my template style. Is there any solution for this? Get the DOM of a component with tagName="" Jul 7, 2016
@miguelcobain
Copy link
Contributor

related: #12500

@pixelhandler
Copy link
Contributor

@sourvb looks like #12500 will add the support your looking for, thanks @miguelcobain

@miguelcobain
Copy link
Contributor

@pixelhandler you can see in that issue that @wycats had some problems with adding that feature.
Maybe we can have this functionality in an addon? /cc @runspired

@sourvb
Copy link
Author

sourvb commented Jul 11, 2016

Thanks @pixelhandler and @miguelcobain. Is there any alternative solution for this?

@pixelhandler
Copy link
Contributor

@sourvb personally I do not use tagName="" I would use a tag so I could access the DOM if needed. Which as you've mentioned requires fixing some style issues. I also avoid style libraries that prohibit how I can build HTML in my apps. But I get that is not always the case, is there a way you can use a tagName and fix the style issue some how?

@pixelhandler
Copy link
Contributor

@sourvb see this comment, #4790 (comment) Which does answer your question…

Is there any solution for this?

Closing this for now.

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

No branches or pull requests

3 participants