mirror of
https://github.com/codex-team/editor.js
synced 2024-06-29 02:40:23 +02:00
commented isTrusted check because this might break tests - isTrusted is always 'false' for Cypress-generated clicks
This commit is contained in:
parent
1701bcb356
commit
63189a371d
|
@ -611,10 +611,12 @@ export default class UI extends Module<UINodes> {
|
||||||
/**
|
/**
|
||||||
* Sometimes we emulate click on some UI elements, for example by Enter on Block Settings button
|
* Sometimes we emulate click on some UI elements, for example by Enter on Block Settings button
|
||||||
* We don't need to handle such events, because they handled in other place.
|
* We don't need to handle such events, because they handled in other place.
|
||||||
|
*
|
||||||
|
* PS: Commented this out because it makes this method behave differently in tests. Cypress-generated clicks are having isTrusted == false.
|
||||||
*/
|
*/
|
||||||
if (!event.isTrusted) {
|
// if (!event.isTrusted) {
|
||||||
return;
|
// return;
|
||||||
}
|
// }
|
||||||
/**
|
/**
|
||||||
* Close Inline Toolbar when nothing selected
|
* Close Inline Toolbar when nothing selected
|
||||||
* Do not fire check on clicks at the Inline Toolbar buttons
|
* Do not fire check on clicks at the Inline Toolbar buttons
|
||||||
|
|
Loading…
Reference in a new issue