The same issue as in MC-154626. I added the used datapack and a short video. Please check out the video!
The loot table works, but only if the composter is broken when it is full. If you click on it or use a hopper it will only drop the default bonemeal.
This is a feature request.