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

searchPseudoElements is missing #67

Open
ThemeSama opened this issue Aug 14, 2018 · 1 comment
Open

searchPseudoElements is missing #67

ThemeSama opened this issue Aug 14, 2018 · 1 comment

Comments

@ThemeSama
Copy link

Hi! Ember version is great but we need searchPseudoElements options for environment.js. Is this possible?

@nateevans
Copy link

nateevans commented Aug 6, 2019

You can change FontAwesome config at any time fairly easily.

I have this file (coffeescript)

import { config } from '@fortawesome/fontawesome-svg-core'

export default ->
  config.autoReplaceSvg = true
  config.searchPseudoElements = true

I run that function early in from the main Ember app file, and I can see that the config is indeed changed by checking window.FontAwesomeConfig(see https://fontawesome.com/how-to-use/with-the-api/setup/configuration)

However, it FontAwesome doesn't seem to pickup dynamically added elements (at least elements added through jQuery).

I'm trying to get this to work in Ember with FA5 https://github.com/pingcheng/bootstrap4-datetimepicker

The library works just fine, but can't seem to get FontAwesome SVG to work with it. I assume because FA doesn't see the DOM mutation or the listeners are somehow getting detached.

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

2 participants