question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Transform is not triggered after item is added

See original GitHub issue

I have an issue where the transform is not triggered when I’m adding new item. See the code below, I don’t even see the console.log fired… Ideas ? Could it be a combination of all different features used? v. 0.9.6

.html

<tag-input [ngModel]="role.users" id="roleUsers" name="roleUsers" #roleUsers="ngModel"
                [onlyFromAutocomplete]="true"
                [placeholder]="'Add a user'"
                [secondaryPlaceholder]="'Add a user'"
                (onAdd)="addUser($event, i)"
                (onRemove)="removeUser($event, i)"
                [transform]="transform">
                <tag-input-dropdown
                       [autocompleteObservable]="requestAutocompleteItems"
                       [autocompleteItems]="userAutocompleteItems">
                       <template let-item="item" let-index="index">
                                {{ item.display }}
                       </template>
                </tag-input-dropdown>
</tag-input>

.js

public transform(item: string): string {
    console.log("in transformer: ",item);
    return `@${item}`;
}

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
admixcommented, Mar 20, 2017

Seems like its working great now. Thanks @Gbuomprisco

1reaction
Gbuompriscocommented, Mar 16, 2017

It does happen when adding items using the autocomplete

Read more comments on GitHub >

github_iconTop Results From Across the Web

Solved: 'When an item is created or modified' trigger not
When I submit a new entry to the list, or modify an existing item, the Flow will not automatically trigger. The only way...
Read more >
"When an item or a file is modified" trigger is not working
When an item or a file is modified trigger is not working. We run the flow manually, update the document library...but the flow...
Read more >
Transform Map- Data is not inserted or updated in - ServiceNow
Solved: Hello I am working on Data Source and while doing Transform Map I am using destination table as one of the User...
Read more >
asp.net - Web Config Transform not working - Stack Overflow
Right click on your web.config and select Add Config Transforms - this will create a dependant transformation config for each of your configurations...
Read more >
Microsoft Power Automate Flow Trigger Conditions - Thrive
It's common to use the 'When an item is created or modified' trigger when creating Flows for SharePoint with Power Automate.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found