{"id":343321,"date":"2022-07-13T13:28:42","date_gmt":"2022-07-13T13:28:42","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=343321"},"modified":"2022-07-13T13:38:14","modified_gmt":"2022-07-13T13:38:14","slug":"remove-console-error-uncaught-typeerror-cannot-read-properties-of-undefined-reading-setattribute","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/remove-console-error-uncaught-typeerror-cannot-read-properties-of-undefined-reading-setattribute\/","title":{"rendered":"Remove console error &#8220;Uncaught TypeError: Cannot read properties of undefined (reading &#8216;setAttribute&#8217;)&#8221;"},"content":{"rendered":"\n<p>Here is the solution for removing console error uncaught type error cannot read property set attribute of undefined<\/p>\n\n\n\n<p>When we create a custom ui component in Magento 2, it shows the console error &#8220;<em>Uncaught TypeError: Cannot read properties of undefined (reading &#8216;setAttribute&#8217;)<\/em>&#8221; in the chrome browser. This error comes due to the bootstrap.js file conflict with the installed theme in our project.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1200\" height=\"315\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/07\/erroro-1-1200x315.png\" alt=\"erroro-1\" class=\"wp-image-343330\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/07\/erroro-1-1200x315.png 1200w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/07\/erroro-1-300x79.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/07\/erroro-1-250x66.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/07\/erroro-1-768x201.png 768w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/07\/erroro-1.png 1362w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p>When we click on the down arrow on multiple id selector of UI grid, the uncaught type error appears on the console.  <\/p>\n\n\n\n<p>The issue can be fixed by overriding the <strong>multiselect.html <\/strong>file from the Magento vendor folder to the installed theme in  :<\/p>\n\n\n\n<p><strong>Vendor file location : <\/strong><\/p>\n\n\n\n<p>vendor\/magento\/module-ui\/view\/base\/web\/templates\/grid\/columns\/multiselect.html<\/p>\n\n\n\n<p>You can read more about multiselect components in Magento on here. <\/p>\n\n\n\n<p>You can create a new theme in magento and override <strong>multiselect.html<\/strong> file inside the theme. To do so, you can create a custom theme by follwing these steps:<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Create custom theme<\/h4>\n\n\n\n<p>Here are the steps to create a custom theme in magento 2 :<\/p>\n\n\n\n<p><strong>1)<\/strong> Firstly, Create registration.php file inside app\/design\/frontend\/Vendor\/ThemeName\/ and paste this code to register the theme into your store :<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">&lt;?php\n\nuse \\Magento\\Framework\\Component\\ComponentRegistrar;\nComponentRegistrar::register(ComponentRegistrar::THEME, &#039;frontend\/Vendor\/ThemeName&#039;, __DIR__);<\/pre>\n\n\n\n<p><strong>2)<\/strong> Secondly, to configure the custom theme you have to create theme.xml file inside app\/design\/frontend\/Vendor\/ThemeName <\/p>\n\n\n\n<p>After creating theme.xml paste this code in file:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">&lt;theme xmlns:xsi=&quot;http:\/\/www.w3.org\/2001\/XMLSchema-instance&quot;\nxsi:noNamespaceSchemaLocation=&quot;urn:magento:framework:Config\/etc\/theme.xsd&quot;&gt;\n    &lt;title&gt;Custom Theme&lt;\/title&gt;\n    &lt;parent&gt;Magento\/blank&lt;\/parent&gt;\n    &lt;media&gt;\n        &lt;preview_image&gt;media\/previewimg.png&lt;\/preview_image&gt;\n    &lt;\/media&gt;\n&lt;\/theme&gt;<\/pre>\n\n\n\n<p>Make sure you have added previewimg.png file inside app\/design\/frontend\/Vendor\/ThemeName\/media\/ directory of the theme.<\/p>\n\n\n\n<p>Finally, run these commands in sequence and your theme will be registered:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">php bin\/magento setup:upgrade\nphp bin\/magento setup:static-content:deploy -f\nphp bin\/magento cache:flush<\/pre>\n\n\n\n<p>3- After this, log into the admin panel of your site and check if your theme is in the theme list.<\/p>\n\n\n\n<p>To do this Go to <strong>Admin &gt; Content &gt; Design &gt; Themes<\/strong><\/p>\n\n\n\n<p>Now, to apply your custom theme go to this location in the admin menu :<\/p>\n\n\n\n<p><strong>Admin &gt; Content &gt; Design &gt; Configuration<\/strong> and select your theme.<\/p>\n\n\n\n<p>Now, run the Magento cache flush command again.  Afterward, your theme will reflect in frontend<\/p>\n\n\n\n<p><strong>Theme file location where you have to override the file:<\/strong><br>app\/design\/frontend\/Vendor\/ThemeName\/Magento_Ui\/web\/templates\/grid\/columns\/multiselect.html<\/p>\n\n\n\n<p>Now remove the attribute data-toggle=&#8221;dropdown&#8221; from the following code.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">&lt;th class=&quot;data-grid-multicheck-cell&quot;&gt;\n    &lt;div class=&quot;action-multicheck-wrap&quot; css=&quot;_disabled: !totalRecords()&quot; collapsible=&quot;&quot;&gt;\n        &lt;input class=&quot;admin__control-checkbox&quot; type=&quot;checkbox&quot;\n            data-bind=&quot;\n                checked: allSelected(),\n                attr: {id: ++ko.uid},\n                event: { change: togglePage },\n                css: { &#039;_indeterminate&#039;: indetermine },\n                enable: totalRecords&quot;&gt;\n        &lt;label attr=&quot;for: ko.uid&quot;\/&gt;\n        &lt;!-- &lt;button class=&quot;action-multicheck-toggle&quot; data-toggle=&quot;dropdown&quot; data-bind=&quot;css: { &#039;_active&#039;: $collapsible.opened }, --&gt;\n        &lt;button class=&quot;action-multicheck-toggle&quot; data-bind=&quot;css: { &#039;_active&#039;: $collapsible.opened },\n                       enable: totalRecords,\n                       toggleCollapsible&quot;&gt;\n            &lt;span translate=&quot;&#039;Options&#039;&quot;\/&gt;\n        &lt;\/button&gt;\n        &lt;ul class=&quot;action-menu&quot; each=&quot;actions&quot; closeCollapsible=&quot;&quot;&gt;\n            &lt;li data-bind=&quot;click: $parent&#091;value].bind($parent),\n                           visible: $parent.isActionRelevant(value)&quot;&gt;\n                &lt;span class=&quot;action-menu-item&quot; text=&quot;label&quot;\/&gt;\n            &lt;\/li&gt;\n        &lt;\/ul&gt;\n    &lt;\/div&gt;\n&lt;\/th&gt;<\/pre>\n\n\n\n<p>The code should look like this after removing data-toggle attribute &#8211; <\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">&lt;th class=&quot;data-grid-multicheck-cell&quot;&gt;\n    &lt;div class=&quot;action-multicheck-wrap&quot; css=&quot;_disabled: !totalRecords()&quot; collapsible=&quot;&quot;&gt;\n        &lt;input class=&quot;admin__control-checkbox&quot; type=&quot;checkbox&quot;\n            data-bind=&quot;\n                checked: allSelected(),\n                attr: {id: ++ko.uid},\n                event: { change: togglePage },\n                css: { &#039;_indeterminate&#039;: indetermine },\n                enable: totalRecords&quot;&gt;\n        &lt;label attr=&quot;for: ko.uid&quot;\/&gt;\n        &lt;!-- &lt;button class=&quot;action-multicheck-toggle&quot; data-bind=&quot;css: { &#039;_active&#039;: $collapsible.opened }, --&gt;\n        &lt;button class=&quot;action-multicheck-toggle&quot; data-bind=&quot;css: { &#039;_active&#039;: $collapsible.opened },\n                       enable: totalRecords,\n                       toggleCollapsible&quot;&gt;\n            &lt;span translate=&quot;&#039;Options&#039;&quot;\/&gt;\n        &lt;\/button&gt;\n        &lt;ul class=&quot;action-menu&quot; each=&quot;actions&quot; closeCollapsible=&quot;&quot;&gt;\n            &lt;li data-bind=&quot;click: $parent&#091;value].bind($parent),\n                           visible: $parent.isActionRelevant(value)&quot;&gt;\n                &lt;span class=&quot;action-menu-item&quot; text=&quot;label&quot;\/&gt;\n            &lt;\/li&gt;\n        &lt;\/ul&gt;\n    &lt;\/div&gt;\n&lt;\/th&gt;<\/pre>\n\n\n\n<p>After this, Run the cache flush command and refresh the browser.<\/p>\n\n\n\n<p>php bin\/magento cache:flush<\/p>\n\n\n\n<p>After the cache flush command , the uncaught type error cannot read property set attribute of undefined error will removed.<\/p>\n\n\n\n<p>Also, you can also check  how to override theme file in magento 2 by following the link &#8211; <a href=\"https:\/\/webkul.com\/blog\/override-phtml-file-magento2\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/webkul.com\/blog\/override-phtml-file-magento2\/<\/a><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here is the solution for removing console error uncaught type error cannot read property set attribute of undefined When we create a custom ui component in Magento 2, it shows the console error &#8220;Uncaught TypeError: Cannot read properties of undefined (reading &#8216;setAttribute&#8217;)&#8221; in the chrome browser. This error comes due to the bootstrap.js file conflict <a href=\"https:\/\/webkul.com\/blog\/remove-console-error-uncaught-typeerror-cannot-read-properties-of-undefined-reading-setattribute\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":441,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-343321","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>uncaught type error cannot read property set attribute of undefined<\/title>\n<meta name=\"description\" content=\"how to remove console error uncaught type error cannot read property set attribute of undefined in magento ui grid component\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/webkul.com\/blog\/remove-console-error-uncaught-typeerror-cannot-read-properties-of-undefined-reading-setattribute\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"uncaught type error cannot read property set attribute of undefined\" \/>\n<meta property=\"og:description\" content=\"how to remove console error uncaught type error cannot read property set attribute of undefined in magento ui grid component\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/remove-console-error-uncaught-typeerror-cannot-read-properties-of-undefined-reading-setattribute\/\" \/>\n<meta property=\"og:site_name\" content=\"Webkul Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webkul\/\" \/>\n<meta property=\"article:published_time\" content=\"2022-07-13T13:28:42+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-07-13T13:38:14+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2022\/07\/erroro-1-1200x315.png\" \/>\n<meta name=\"author\" content=\"Arun Joshi\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webkul\" \/>\n<meta name=\"twitter:site\" content=\"@webkul\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Arun Joshi\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/remove-console-error-uncaught-typeerror-cannot-read-properties-of-undefined-reading-setattribute\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/remove-console-error-uncaught-typeerror-cannot-read-properties-of-undefined-reading-setattribute\/\"},\"author\":{\"name\":\"Arun Joshi\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/8b94a9d95c7e434bc21e91ff0e614123\"},\"headline\":\"Remove console error &#8220;Uncaught TypeError: Cannot read properties of undefined (reading &#8216;setAttribute&#8217;)&#8221;\",\"datePublished\":\"2022-07-13T13:28:42+00:00\",\"dateModified\":\"2022-07-13T13:38:14+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/remove-console-error-uncaught-typeerror-cannot-read-properties-of-undefined-reading-setattribute\/\"},\"wordCount\":440,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/remove-console-error-uncaught-typeerror-cannot-read-properties-of-undefined-reading-setattribute\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2022\/07\/erroro-1-1200x315.png\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/remove-console-error-uncaught-typeerror-cannot-read-properties-of-undefined-reading-setattribute\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/remove-console-error-uncaught-typeerror-cannot-read-properties-of-undefined-reading-setattribute\/\",\"url\":\"https:\/\/webkul.com\/blog\/remove-console-error-uncaught-typeerror-cannot-read-properties-of-undefined-reading-setattribute\/\",\"name\":\"uncaught type error cannot read property set attribute of undefined\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/remove-console-error-uncaught-typeerror-cannot-read-properties-of-undefined-reading-setattribute\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/remove-console-error-uncaught-typeerror-cannot-read-properties-of-undefined-reading-setattribute\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2022\/07\/erroro-1-1200x315.png\",\"datePublished\":\"2022-07-13T13:28:42+00:00\",\"dateModified\":\"2022-07-13T13:38:14+00:00\",\"description\":\"how to remove console error uncaught type error cannot read property set attribute of undefined in magento ui grid component\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/remove-console-error-uncaught-typeerror-cannot-read-properties-of-undefined-reading-setattribute\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/remove-console-error-uncaught-typeerror-cannot-read-properties-of-undefined-reading-setattribute\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/remove-console-error-uncaught-typeerror-cannot-read-properties-of-undefined-reading-setattribute\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/07\/erroro-1.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/07\/erroro-1.png\",\"width\":1362,\"height\":357,\"caption\":\"erroro-1\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/remove-console-error-uncaught-typeerror-cannot-read-properties-of-undefined-reading-setattribute\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Remove console error &#8220;Uncaught TypeError: Cannot read properties of undefined (reading &#8216;setAttribute&#8217;)&#8221;\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webkul.com\/blog\/#website\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"name\":\"Webkul Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webkul.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webkul.com\/blog\/#organization\",\"name\":\"WebKul Software Private Limited\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"width\":380,\"height\":380,\"caption\":\"WebKul Software Private Limited\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webkul\/\",\"https:\/\/x.com\/webkul\",\"https:\/\/www.instagram.com\/webkul\/\",\"https:\/\/www.linkedin.com\/company\/webkul\",\"https:\/\/www.youtube.com\/user\/webkul\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/8b94a9d95c7e434bc21e91ff0e614123\",\"name\":\"Arun Joshi\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ff769a28846d6e43741fa4ccbfd685e02593e81a83320587121671ebd0143d43?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/ff769a28846d6e43741fa4ccbfd685e02593e81a83320587121671ebd0143d43?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Arun Joshi\"},\"url\":\"https:\/\/webkul.com\/blog\/author\/arun-joshi632\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"uncaught type error cannot read property set attribute of undefined","description":"how to remove console error uncaught type error cannot read property set attribute of undefined in magento ui grid component","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/webkul.com\/blog\/remove-console-error-uncaught-typeerror-cannot-read-properties-of-undefined-reading-setattribute\/","og_locale":"en_US","og_type":"article","og_title":"uncaught type error cannot read property set attribute of undefined","og_description":"how to remove console error uncaught type error cannot read property set attribute of undefined in magento ui grid component","og_url":"https:\/\/webkul.com\/blog\/remove-console-error-uncaught-typeerror-cannot-read-properties-of-undefined-reading-setattribute\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2022-07-13T13:28:42+00:00","article_modified_time":"2022-07-13T13:38:14+00:00","og_image":[{"url":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2022\/07\/erroro-1-1200x315.png","type":"","width":"","height":""}],"author":"Arun Joshi","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Arun Joshi","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/remove-console-error-uncaught-typeerror-cannot-read-properties-of-undefined-reading-setattribute\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/remove-console-error-uncaught-typeerror-cannot-read-properties-of-undefined-reading-setattribute\/"},"author":{"name":"Arun Joshi","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/8b94a9d95c7e434bc21e91ff0e614123"},"headline":"Remove console error &#8220;Uncaught TypeError: Cannot read properties of undefined (reading &#8216;setAttribute&#8217;)&#8221;","datePublished":"2022-07-13T13:28:42+00:00","dateModified":"2022-07-13T13:38:14+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/remove-console-error-uncaught-typeerror-cannot-read-properties-of-undefined-reading-setattribute\/"},"wordCount":440,"commentCount":0,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/remove-console-error-uncaught-typeerror-cannot-read-properties-of-undefined-reading-setattribute\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2022\/07\/erroro-1-1200x315.png","inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/remove-console-error-uncaught-typeerror-cannot-read-properties-of-undefined-reading-setattribute\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/remove-console-error-uncaught-typeerror-cannot-read-properties-of-undefined-reading-setattribute\/","url":"https:\/\/webkul.com\/blog\/remove-console-error-uncaught-typeerror-cannot-read-properties-of-undefined-reading-setattribute\/","name":"uncaught type error cannot read property set attribute of undefined","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/remove-console-error-uncaught-typeerror-cannot-read-properties-of-undefined-reading-setattribute\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/remove-console-error-uncaught-typeerror-cannot-read-properties-of-undefined-reading-setattribute\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2022\/07\/erroro-1-1200x315.png","datePublished":"2022-07-13T13:28:42+00:00","dateModified":"2022-07-13T13:38:14+00:00","description":"how to remove console error uncaught type error cannot read property set attribute of undefined in magento ui grid component","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/remove-console-error-uncaught-typeerror-cannot-read-properties-of-undefined-reading-setattribute\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/remove-console-error-uncaught-typeerror-cannot-read-properties-of-undefined-reading-setattribute\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/remove-console-error-uncaught-typeerror-cannot-read-properties-of-undefined-reading-setattribute\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/07\/erroro-1.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/07\/erroro-1.png","width":1362,"height":357,"caption":"erroro-1"},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/remove-console-error-uncaught-typeerror-cannot-read-properties-of-undefined-reading-setattribute\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Remove console error &#8220;Uncaught TypeError: Cannot read properties of undefined (reading &#8216;setAttribute&#8217;)&#8221;"}]},{"@type":"WebSite","@id":"https:\/\/webkul.com\/blog\/#website","url":"https:\/\/webkul.com\/blog\/","name":"Webkul Blog","description":"","publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webkul.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webkul.com\/blog\/#organization","name":"WebKul Software Private Limited","url":"https:\/\/webkul.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","width":380,"height":380,"caption":"WebKul Software Private Limited"},"image":{"@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webkul\/","https:\/\/x.com\/webkul","https:\/\/www.instagram.com\/webkul\/","https:\/\/www.linkedin.com\/company\/webkul","https:\/\/www.youtube.com\/user\/webkul\/"]},{"@type":"Person","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/8b94a9d95c7e434bc21e91ff0e614123","name":"Arun Joshi","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/ff769a28846d6e43741fa4ccbfd685e02593e81a83320587121671ebd0143d43?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ff769a28846d6e43741fa4ccbfd685e02593e81a83320587121671ebd0143d43?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Arun Joshi"},"url":"https:\/\/webkul.com\/blog\/author\/arun-joshi632\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/343321","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/users\/441"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=343321"}],"version-history":[{"count":12,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/343321\/revisions"}],"predecessor-version":[{"id":344073,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/343321\/revisions\/344073"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=343321"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=343321"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=343321"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}