question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[v2] theme tag being set

See original GitHub issue

Version 2.1.0 React 15.6.2

When react select is being rendered it throws this warning:

Warning: Unknown prop `theme` on <input> tag. Remove this prop from the element. For details, see https://fb.me/react-unknown-prop
    in input (created by AutosizeInput)
    in div (created by AutosizeInput)
    in AutosizeInput (created by Input)
    in div (created by Input)
    in Input (created by Select)
    in div (created by ValueContainer)
    in ValueContainer (created by Select)
    in div (created by Control)
    in Control (created by Select)
    in div (created by SelectContainer)
    in SelectContainer (created by Select)

See console on load/render: Edit ykm2z7o441

When I tried to view the code of Input.js, I found out that the inputCSS function does not receive isDisabled in any case. I think it’s component need to be refactored.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:4
  • Comments:10

github_iconTop GitHub Comments

3reactions
joelstranskycommented, Oct 18, 2018

Turns out this bug was emanating from another package react-input-autosize I submitted a pull-request to blacklist "theme" as well.

2reactions
joelstranskycommented, Oct 18, 2018

I confirmed that changing the prop to data-theme fixes the problem. Now I just have to verify that I didn’t just break theming and set up a PR

Read more comments on GitHub >

github_iconTop Results From Across the Web

Liquid tags: theme tags - Shopify.dev
Theme tags assign or render content that's part of your theme.
Read more >
Extending Themes - Apache Struts
Extending Themes. Creating a New Theme from Scratch; Wrapping an Existing Theme. Wrapping a control; Extending an Existing Theme. Special parameters.
Read more >
How to create custom label by tag in the default theme
1. Access our app admin, go to Theme menu > Default theme settings > switch to the Product item tab > Click the...
Read more >
Shopify Cheat Sheet - Liquid
This cheat sheet is an interactive reference for the Liquid templating language that will help you build ecommerce templates on Shopify.
Read more >
Styles and Themes - Android Developers
A theme defines a collection of named resources which can be referenced by styles, layouts, widgets, and so on. Themes assign semantic names,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found