File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 11{
2- "version" : " 0.1.4 " ,
2+ "version" : " 0.1.5 " ,
33 "name" : " antd-phone-input" ,
44 "description" : " Advanced Phone Number Input for Ant Design" ,
55 "keywords" : [
Original file line number Diff line number Diff line change @@ -21,9 +21,9 @@ const PhoneInput = (inputLegacyProps: PhoneInputProps) => {
2121
2222 useEffect ( ( ) => {
2323 /** Load antd 5.x styles dynamically observing the theme change */
24- for ( let styleSheet of document . styleSheets ) {
24+ for ( let styleSheet of document ? .styleSheets || [ ] ) {
2525 let rule : any ;
26- for ( rule of styleSheet . cssRules || styleSheet . rules ) {
26+ for ( rule of styleSheet ? .cssRules || styleSheet ? .rules || [ ] ) {
2727 if ( rule . selectorText === ".react-tel-input .country-list" ) {
2828 rule . style . boxShadow = token . boxShadow ;
2929 rule . style . backgroundColor = token . colorBgElevated ;
You can’t perform that action at this time.
0 commit comments