It appears that there is a mistake with the css selector when removing the layer documentation modal (class is used as the ID).