PDA

View Full Version : Token.onDelete - Bug or expected?



jharp
October 25th, 2021, 21:16
I'm trying to prevent the deletion of a particular token when an Delete All Tokens selection is made. Token.onDelete is called but no matter if I return true or false it continues with the Delete of the token.

Is this a bug or expected behavior?

Thanks,

Jason

Moon Wizard
October 25th, 2021, 21:32
You can not prevent the deletion of a token. The onDelete is just an event, not an interrupt.

Regards,
JPG