We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
So I'm trying to use ember-truth-helpers with this addon: ember-cli-async-button.
It is a simple component that has a disabled property bound to an attribute.
disabled
This works as expected:
Component disabled: {{ async-button disabled=true }} Component disabled: {{ async-button disabled=(not false) }} Component enabled: {{ async-button disabled=false }} Component enabled: {{ async-button disabled=(not true) }}
Bot then I've got an Ember Data model. This also works fine:
Displays "false" or "true": {{ model.isDirty }} Component enabled or disabled depending on `isDirty` state: {{ async-button disabled=model.isDirty }}
Now, i'm putting model.isDirty into the not subexpression, and suddenly it's not working!
model.isDirty
not
Displays "false" or "true": {{ model.isDirty }} Component always enabled, regardless of `isDirty` state: {{ async-button disabled=(not model.isDirty) }}
The text was updated successfully, but these errors were encountered:
I'll take a look..
I see you've got:
Displays "false" or "true": {{ model.isDirty }}
Try also adding:
Displays "false" or "true": {{ not model.isDirty }}
Make sure that displays what you expect.. It will narrow down the issue a bit more
Sorry, something went wrong.
{{ not model.isDirty }} works as expected.
{{ not model.isDirty }}
I have experienced the same problem with an if subexpression, without ember truth helpers.
if
ember truth helpers
And I was unable to reproduce the problem with a blank component.
Looks like it's a problem of ember-cli-async-button.
DockYard/ember-async-button#41
No branches or pull requests
So I'm trying to use ember-truth-helpers with this addon: ember-cli-async-button.
It is a simple component that has a
disabled
property bound to an attribute.This works as expected:
Bot then I've got an Ember Data model. This also works fine:
Now, i'm putting
model.isDirty
into thenot
subexpression, and suddenly it's not working!The text was updated successfully, but these errors were encountered: