PopupMaker/Popup-Maker

Saving a popup theme overlay color without the # prefix breaks the theme editor

marklchaves opened this issue · 0 comments

Describe the bug

When I set a popup theme's overlay color to a hex value without the hash (#) prefix, the popup theme editor breaks.

  • Only the Overlay, Container, and Title tabs show.
  • All the theme settings disappear in the available tabs (Overlay, Container, Title).

When I add the missing hash (#) in the DB, the editor works again, but the color value in the DB doesn't match the "default" color in the Overlay tab (it should read the value from the DB).

Site information

Popup Maker version: 1.18.2

WordPress version: 6.4.1

PHP version: 7.4.33

Expected behavior

The theme editor should automatically add the missing hash (#) for the Overlay setting like the other color pickers in the theme editor.

Current behavior

See above.

Steps to reproduce

Follow the steps in this video.

https://share.wppopupmaker.com/Apul0WKv

Errors

No errors in the:

  • Server error log
  • Server debug log
  • Popup Maker Tools Error Log

Additional context