You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I specify sanitizeInput, there is immediately a call to update. That is particularly bad in situations with a disabled text input.
E.g.
{{one-way-input layer.startEffect.duration disabled=layer.startEffect update=(action (mut layer.startEffect.duration))}}
Throws an error with sanitizeInput, because layer.startEffect does not yet exist.
There is also a situation where sanitizeInput causes the creation of 40 records just because the user opens a tab, where the inputs are located. By doing this - without typing anything - the update calls are fired immediately.
Without sanitizeInput everything is back to normal
The text was updated successfully, but these errors were encountered:
More investigation on this: the problem is undefined !== null. I want to cast empty input fields to null on sanitizeInput. That causes the update. Regardless: what I expected was sanitize only driven by user interaction.
I fixed it this way:
(components/one-way-input.js)
`
import Ember from 'ember';
import OneWayInput from 'ember-one-way-controls/components/one-way-input';
import { invokeAction } from 'ember-invoke-action';
When I specify sanitizeInput, there is immediately a call to update. That is particularly bad in situations with a disabled text input.
E.g.
{{one-way-input layer.startEffect.duration disabled=layer.startEffect update=(action (mut layer.startEffect.duration))}}
Throws an error with sanitizeInput, because layer.startEffect does not yet exist.
There is also a situation where sanitizeInput causes the creation of 40 records just because the user opens a tab, where the inputs are located. By doing this - without typing anything - the update calls are fired immediately.
Without sanitizeInput everything is back to normal
The text was updated successfully, but these errors were encountered: