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

Seeing 404's for image blobs, can't figure out why -- in Chrome, not Firefox *hrmph* #29

Closed
rstudner opened this issue Apr 25, 2017 · 6 comments · Fixed by #30
Closed

Comments

@rstudner
Copy link

rstudner commented Apr 25, 2017

So if I navigate to a certain route in my application, /activity say, I have an ember light table with a cell component that renders some ember-initials (3 of them, 1 per row, and I see 3 console outputs of User's).

screen shot 2017-04-25 at 3 43 14 pm

All is well.

If I navigate away from the route and back, the table looks great, but I now see
screen shot 2017-04-25 at 3 41 13 pm

Which now shows 6 of them.. and then 3 blob errors.

The template has

{{#if user.isFulfilled}}
  <div class="user-badge">
    {{#ember-initials
        fontFamily="Yantramanav, Helvetica Neue, Helvetica, Arial, sans-serif"
        name=user.displayName
        seedText=user.email
        backgroundColor=computedBackgroundColor
        size=36}}
      {{#bs-tooltip}}{{user.displayName}}{{/bs-tooltip}}
    {{/ember-initials}}
  </div>
{{/if}}

The if statement has been my latest attempt to stop the problem -- but it doesn't work.

@rstudner rstudner changed the title Seeing 404's for image blobs, can't figure out why Seeing 404's for image blobs, can't figure out why -- in Chrome, not Firefox *hrmph* Apr 25, 2017
@Exelord
Copy link
Member

Exelord commented Apr 26, 2017

Hi, @rstudner
What version are you using?
Are the errors only in the console or the avatars stop displaying correctly?

I will look at it.

@rstudner
Copy link
Author

Avatars always display correctly / errors are only in the console.

@Exelord
Copy link
Member

Exelord commented Apr 26, 2017

OK, so what version are you using?
Could you confirm if that issue exists even without {{#bs-tooltip}}{{user.displayName}}{{/bs-tooltip}}?

We had a similar problem with ember-bootstrap and we made our wrapper component like:

{{#if tooltipEnabled}}
  {{#bs-popover triggerEvents="hover focus" autoPlacement=true placement="top" renderInPlace=true}}
// some content
  {{/bs-popover}}
{{/if}}

{{ember-initials class="img-circle"
  name=user.displayName
  seedText=user.email
  width=width
  height=height
  fontSize=fontSize
  fontWeight=fontWeight
  fontFamily=fontFamily}}

@rstudner
Copy link
Author

I'm using 3.1.0.

Removing the tooltip doesn't change the console errors.

Side note of interest: if on this route i'm doing this, I do a full page refresh -- I don't see the errors.
If, I navigate TO the route (from another route), I see the errors.

Hrm.

@Exelord
Copy link
Member

Exelord commented Apr 30, 2017

I was trying to replicate that but I was not able to do that :/ Could you please prepare an Ember Twiddle with the bug?
...The priority of the bug is not too high, so is more like "if you would like to prepare..." :)


EDIT:
Here is my working twiddle: https://ember-twiddle.com/2c71ff8be0f7e7c49c5bc0362c84730e

@Exelord
Copy link
Member

Exelord commented May 1, 2017

@rstudner Try the new version v3.2.0 :)

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 a pull request may close this issue.

2 participants