Skip to content

Commit

Permalink
Merge pull request #526 from MJedr/fix-onvaluechange
Browse files Browse the repository at this point in the history
primitive field: fix onValueChange
  • Loading branch information
MJedr authored Dec 2, 2021
2 parents 878d8b0 + 7f2a292 commit 4b47c58
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 41 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
name: Node.js Package
on:
push:
branches:
- master
pull_request:
branches:
- master
release:
types: [created]
jobs:
Expand All @@ -14,8 +20,10 @@ jobs:
registry-url: 'https://registry.npmjs.org'
- run: yarn install
- run: yarn build
- run: yarn copy
- run: >
- if: ${{ github.event_name == 'release' }}
run: yarn copy
- if: ${{ github.event_name == 'release' }}
run: >
cd dist;
npm publish --access public
env:
Expand Down
38 changes: 0 additions & 38 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion src/primitive-field/primitive-field.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export class PrimitiveFieldComponent extends AbstractFieldComponent implements O
// setTimeout to workaround the case when the value is changed back to previous value inside onValuChange callback
setTimeout( () => {
this.schema.onValueChange(this.path, this.value, this.jsonStoreService, this.keysStoreService);
this.validate()
this.validate();
}
);
}
Expand Down

0 comments on commit 4b47c58

Please sign in to comment.