Why isn't 'drag' event working?

I’m trying to use the drag event to make users able to drag a container on the y axis, I literally copied these Phaser 3 examples on my project:

https://labs.phaser.io/view.html?src=src/game%20objects/container/draggable%20container.js&v=3.54.0
https://labs.phaser.io/view.html?src=src/input/dragging/enable%20for%20drag.js&v=3.54.0

But even though it doesn’t work, the ‘drag’ event isn’t triggered and I don’t find any information about it. Can someone help me?