onSave
method called twice if both saveOnBlur
and saveOnEnter
attributes set to true
#83
Labels
onSave
method called twice if both saveOnBlur
and saveOnEnter
attributes set to true
#83
We are using
ngx-inline-editor
withhideButtons
set to true and want to have the input text value saved either when the user presses Enter or clicks outside the input, causing the the input to blur, so we have set bothsaveOnBlur
andsaveOnEnter
totrue
. This causes the method bound toonSave
to be called twice if the user pressesEnter
, perhaps because that action causes the input to blur. Since the same user action is triggering the save, I think that theonSave
method should only be invoked once.The text was updated successfully, but these errors were encountered: