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
Controls not's works with angular after change #13264
Comments
Automention: Hey @MaximSagan @kroeder, you've been tagged! Can you give a hand here? |
I don't know what is going on, since there isn't any implementation details and only a mention of a My best guess is that it has to do with control changes emitting outside the zone, but I am just guessing, since the problem happens when using a control. If that is the problem, it should be fixed by #12382. |
@ClemThu can you test with the latest version of storybook ? FYI :
|
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks! |
Hello! I'm experiencing a similar issue with Args set in the story take effect, but args set in the controls do not. Here are a few example snippets: From Button.stories.tsexport const Primary = Template.bind({});
Primary.args = {
variant: 'primary',
id: 'foo'
};
export const Secondary = Template.bind({});
Secondary.args = {
variant: 'secondary'
}; From button.component.tsexport class ButtonComponent {
@Input() id?: string; From button.component.html
The id |
@rdebeasi can you supply a reproduction, so we can investigate? |
Did you find a solution @rdebeasi ? I'm having the same issue where args are set, but control modifications are not updating the rendered component.. |
I ended up hiding the controls, so I haven't dug in any further. Sorry about that! If you could create a repro, that would help the Storybook folks troubleshoot. (A repro would also help determine whether the bug still exists in Storybook 7.) |
Hi there! Thank you for opening this issue, but it has been marked as |
I'm afraid we need to close this issue for now, since we can't take any action without the requested reproduction or additional information. But please don't hesitate to open a new issue if the problem persists – we're always happy to help. Thanks so much for your understanding. |
If you are reporting a bug or requesting support, start here:
Bug or support request summary
Please provide issue details here - What did you expect to happen? What happened instead?
When i change controls my angular components is not update, it works if i set default value but when i use controls to change angular components is not full loaded. I don't understand why ... i think issue is with *ngIf. I don't find doc or github for fix it ? It's works fine with simple html change but not on JS
Steps to reproduce
import {
Meta,
Story,
ArgsTable,
Description,
Canvas,
} from '@storybook/addon-docs/blocks';
import { MyseDatagridModule } from './myse-datagrid.module';
import { MyseDatagridComponent } from './myse-datagrid.component';
import { moduleMetadata } from '@storybook/angular';
import { SeWebModule } from '@se/web-ui-angular';
import { action } from '@storybook/addon-actions';
import { boolean, select, text, date, withKnobs } from '@storybook/addon-knobs';
export const argTypes = {};
<Meta
title="HOME PAGES/Datagrid"
component={MyseDatagridComponent}
argTypes={argTypes}
decorators={[
moduleMetadata({
imports: [MyseDatagridModule, SeWebModule],
}),
withKnobs,
]}
/>
export const ngModelChange = action('ngModelChange');
Input component
export const Template = (args) => ({
{Template.bind({})}component: MyseDatagridComponent,
props: args,
});
Properties
Please specify which version of Storybook and optionally any affected addons that you're running
@storybook/angular v6.0.21
Angular 10
The text was updated successfully, but these errors were encountered: