Skip to content

Commit 68c7cd4

Browse files
authored
Merge pull request formio#1445 from formio/bugfix/datamap-cursor-jumping
DataMap: Fixed cursor jumping when entering value in ng-formio 3.x
2 parents 19dba44 + 6cf0da0 commit 68c7cd4

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Changelog.md

+3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
55
and this project adheres to [Semantic Versioning](http://semver.org/).
66

77
## [Unreleased]
8+
### Fixed
9+
- DataMap: cursor jumping when entering value in ng-formio 3.x
10+
811
### Added
912
- Ability to provide HTML attributes for components inputs
1013

src/components/datamap/DataMap.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,9 @@ export default class DataMapComponent extends NestedComponent {
265265
setValue(value) {
266266
const changed = this.hasChanged(value, this.dataValue);
267267
this.dataValue = value;
268-
this.buildRows();
268+
if (changed) {
269+
this.buildRows();
270+
}
269271
return changed;
270272
}
271273

0 commit comments

Comments
 (0)