Custom blocks with the minecraft:flower_pottable component and an overridden item have incorrect interaction behavior with filled flower pots. They are able to take out a stored item on interaction when being held.
Demonstration
The attached video demonstrates the issue. When holding the oak sapling and interacting with a filled flower pot, nothing happens. When doing so while holding the custom pottable block with an item override (apple icon), however, the item will be removed from the targeted flower pot.
Reproduction
This issue is known to occur with any custom block with both the minecraft:flower_pottable component and an item override.
The demo video is taken from the behavior pack in the attached world for convenience. This world can be opened (in Minecraft Preview) for inspection or unzipped to access the code associated with such.
Thank you for helping us improve Minecraft! We saved your files: