docs(dialog): fix sample code

Thank @ertrzyiks
Closes #468