To reproduce: open your inventory or a crafting table and click the recipe book. Then click the crafting table icon in the top-right of the recipe interface to switch it from "showing all" to "showing craftable." Click the recipe book again to close it, then re-open it. Notice that "showing craftable" is still enabled.
Now close your inventory and open it again, then click the recipe book. You would expect your preference to have been saved, but it was reset back to "showing all."