styled-components 6.1.3 → 6.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,7 +10,7 @@
10
10
  'data-styled';
11
11
  var SC_ATTR_ACTIVE = 'active';
12
12
  var SC_ATTR_VERSION = 'data-styled-version';
13
- var SC_VERSION = "6.1.3";
13
+ var SC_VERSION = "6.1.4";
14
14
  var SPLITTER = '/*!sc*/\n';
15
15
  var IS_BROWSER = typeof window !== 'undefined' && 'HTMLElement' in window;
16
16
  var DISABLE_SPEEDY = Boolean(typeof SC_DISABLE_SPEEDY === 'boolean'
@@ -1860,7 +1860,7 @@
1860
1860
  var propsForElement = {};
1861
1861
  for (var key in context) {
1862
1862
  if (context[key] === undefined) ;
1863
- else if (key[0] === '$' || key === 'as' || key === 'theme') ;
1863
+ else if (key[0] === '$' || key === 'as' || (key === 'theme' && context.theme === theme)) ;
1864
1864
  else if (key === 'forwardedAs') {
1865
1865
  propsForElement.as = context.forwardedAs;
1866
1866
  }