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.

Not giving a prop a value should consider it as true in HTML

See original GitHub issue

I kept trying to add the prop ‘raised’ and ‘colored’ to an mdl-button but with no luck:

<mdl-button raised colored v-mdl-ripple-effect>
<i class="material-icons">content_paste</i>
</mdl-button>

all i get is a basic button with ripple effect

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
posvacommented, Dec 20, 2015

You can now update to the v0.3 and write raised without passing a value

0reactions
RiseupDevcommented, Dec 20, 2015

nice 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to pass props without value to component - Stack Overflow
Just the attribute name. The value is implicitly the empty string. In the following example, the disabled attribute is given with the empty ......
Read more >
React Props Cheatsheet: 10 Patterns You Should Know
There is no need to write that a prop is equal to true. Instead, you can just include the prop value, and it...
Read more >
JSX In Depth - React
Props Default to “True”​​ In general, we don't recommend not passing a value for a prop, because it can be confused with the...
Read more >
Decide on the desired behavior when a boolean value is ...
I believe hidden shouldn't use true/false either but rather just attribute exists vs not exists. Yep. hidden is a boolean property, assigning ...
Read more >
<input>: The Input (Form Input) element - HTML
The value given to the list attribute should be the id of a <datalist> element located in the same document. The <datalist> provides...
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