Disabled select option

Hi!

I’m trying to render an option into a select (simple dropdown, NOT smart select!) with disabled attribute based on some store’s conditions. I’m going crazy with this… I’m using f7 v6. Here is my code:

	${first_condition && $h`
		<div>
		...
			<select>
				<option ${condition && $h`disabled`}>text</option>
			</select>
		...
		</div>
	`}

If I put ${condition && $hdisabled} into text value it works, for example… What am I doing wrong?

Please, help! :cry:

Solved this way:

disabled=${condition}

You can also try with the “disabled” css class in the component

@fabricio Thanks for the reply, but it not works for select’s option…