If I create a plugin following the example docs everything works great, except some of the properties are being reverted to their defaults in the state. If I try to override closeBtn, closeHtml, escToClose the properties are stored in the initial components state, but when setState() is called on the component its not passing these parameters so their values are dropped. This does work for closeOnOutsideClick as its included in the setState() call..
If I create a plugin following the example docs everything works great, except some of the properties are being reverted to their defaults in the state. If I try to override
closeBtn
,closeHtml
,escToClose
the properties are stored in the initial components state, but whensetState()
is called on the component its not passing these parameters so their values are dropped. This does work forcloseOnOutsideClick
as its included in thesetState()
call..Example:
The issue is that this
setState()
call isn't supplying all of the supported properties: https://github.com/minutemailer/react-popup/blob/master/src/Popup.react.js#L212-L222