Its a bug. Can't believe no one ever reported this.
Bug: https://github.com/primefaces/primefaces/issues/12887
PR: https://github.com/primefaces/primefaces/pull/12888
It will be fixed in PF 14.0.8+