Bind an inline dialog (aui) to a client web item


I’m writing a plugin for bitbucket server and I would like to add an aui element to the pull request view page. I can bind an inline dialog to a web item by following the tutorial here but I can’t make it work with a client web item. Has anyone already tried that? Or is there a reason why the binding is not working with a client side web fragment. What am I missing? Help please.

Thanks in advance!