Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
@sencha+ext-react+6.7.0.patch
diff --git a/node_modules/@sencha/ext-react/dist/ExtRenderer.js b/node_modules/@sencha/ext-react/dist/ExtRenderer.js
index 1d323f0..20c29f7 100644
--- a/node_modules/@sencha/ext-react/dist/ExtRenderer.js
+++ b/node_modules/@sencha/ext-react/dist/ExtRenderer.js
@@ -437,9 +437,9 @@ function doAdd(childXtype, parentCmp, childCmp, childPropsChildren) {
// childXtype == 'datecolumn' ||
// childXtype == 'rownumberer' ||
// childXtype == 'numbercolumn' ) {
- if (childxtype === 'column' || childxtype === 'treecolumn' || childxtype === 'textcolumn' || childxtype === 'checkcolumn' || childxtype === 'datecolumn' || childxtype === 'rownumberer' || childxtype === 'numbercolumn') {
+ if (childXtype === 'column' || childXtype === 'treecolumn' || childXtype === 'textcolumn' || childXtype === 'checkcolumn' || childXtype === 'datecolumn' || childXtype === 'rownumberer' || childXtype === 'numbercolumn') {
parentCmp.addColumn(childCmp);
- } else if ((childxtype === 'toolbar' || childxtype === 'titlebar') && parentCmp.getHideHeaders != undefined) {
+ } else if ((childXtype === 'toolbar' || childXtype === 'titlebar') && parentCmp.getHideHeaders != undefined) {
if (parentCmp.getHideHeaders() === false) {
//var j = parentCmp.items.items.length;
parentCmp.insert(1, childCmp);
diff --git a/node_modules/@sencha/ext-react/src/ExtRenderer.js b/node_modules/@sencha/ext-react/src/ExtRenderer.js
index a4c7e33..f14fbf4 100644
--- a/node_modules/@sencha/ext-react/src/ExtRenderer.js
+++ b/node_modules/@sencha/ext-react/src/ExtRenderer.js
@@ -455,10 +455,10 @@ function doAdd(childXtype, parentCmp, childCmp, childPropsChildren) {
// childXtype == 'datecolumn' ||
// childXtype == 'rownumberer' ||
// childXtype == 'numbercolumn' ) {
- if (childxtype === 'column' || childxtype === 'treecolumn' || childxtype === 'textcolumn' || childxtype === 'checkcolumn' || childxtype === 'datecolumn' || childxtype === 'rownumberer' || childxtype === 'numbercolumn') {
+ if (childXtype === 'column' || childXtype === 'treecolumn' || childXtype === 'textcolumn' || childXtype === 'checkcolumn' || childXtype === 'datecolumn' || childXtype === 'rownumberer' || childXtype === 'numbercolumn') {
parentCmp.addColumn(childCmp);
}
- else if ((childxtype === 'toolbar' || childxtype === 'titlebar') && parentCmp.getHideHeaders != undefined) {
+ else if ((childXtype === 'toolbar' || childXtype === 'titlebar') && parentCmp.getHideHeaders != undefined) {
if (parentCmp.getHideHeaders() === false) {
//var j = parentCmp.items.items.length;
parentCmp.insert(1, childCmp);
@daveyvanniftrik

This comment has been minimized.

Copy link
Owner Author

daveyvanniftrik commented Jul 25, 2019

npm install patch-package and follow https://www.npmjs.com/package/patch-package#set-up
mkdir patches && touch patches/@sencha+ext-react+6.7.0.patch (and paste raw contents in this file)
npm install (will apply patch)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.