'AEM RTE styles plugin able to select more than one option in the dropdown

I have implemented the RTE styles plugin from this documentation but the is one issue. I'm able to select more than one option at the same time from the dropdown

enter image description here

I want only one style selected at a time, just like the paraformat dropdown

I checked other answers regarding this issue but couldn't find any custom plugin or OOTB solution. Please let me know if anybody has developed a solution for this.

Thanks.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source