Skip to content

Commit

Permalink
fix(core): insertFromDrop action behaves now in the same way as `in…
Browse files Browse the repository at this point in the history
…sertFromPaste` (#291)
  • Loading branch information
vladimirpotekhin authored May 10, 2023
1 parent d536b43 commit 58e0fcc
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions projects/core/src/lib/mask.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,11 @@ export class Maskito extends MaskHistory {
selection: getLineSelection(this.elementState, isForward),
force: true,
});
case 'insertFromDrop':
// We don't know caret position at this moment
// (inserted content will be handled later in "input"-event)
return;
case 'insertLineBreak':
return this.handleEnter(event);
case 'insertFromPaste':
case 'insertText':
case 'insertFromDrop':
default:
return this.handleInsert(event, event.data || '');
}
Expand Down

0 comments on commit 58e0fcc

Please sign in to comment.