Fixes [#55] - Bug fix for v2.6.2 which broke onBeforeShow functionality