Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: use change event instead of keyup for node name change (#248)
Fixes a few issues: - "keyup" is not triggered when copy-pasting. So if the user right clicks and pastes a new value, the name would not get updated. - "keyup" triggers each time a character is typed in the input field. This results in a lot of operations on each keypress. - No need to set this.nodeProperties.nodeBetriebspunktName nor this.nodeProperties.nodeBetriebspunktFullName on keyup: this is already done automatically by [ngModel]. Note that we do loose a bit of functionality with this patch: the diagrams and sidebar headings aren't updated in real-time as the user types anymore.
- Loading branch information