Page 1 of 1

FIXED: SelectTagAction doesn't work sometimes...

Posted: 24 Sep 2024 17:09
by crtrubshaw
Hi Rickard, sometimes this function doesn't select the tag block when I'm on the start tag, weirdly it does work if I'm on the end tag.

Try select the <select> tag below in TextEd...

Code: Select all

<select id="view" name="view" onchange="changeView(this[this.selectedIndex].value);">
	<option value="Day"<?= isSelected($view == 'Day') ?> />Day</option>
	<option value="WorkWeek"<?= isSelected($view == 'WorkWeek') ?> />Work Week</option>
	<option value="Week"<?= isSelected($view == 'Week') ?> />Week</option>
	<option value="Month"<?= isSelected($view == 'Month') ?> />Month</option>
	<option value="Resources"<?= isSelected($view == 'Resources') ?> />Resources</option>
</select>

Re: SelectTagAction doesn't work sometimes...

Posted: 28 Sep 2024 13:54
by Rickard Johansson
Fixed in next release (v16.31). Thanks!

BTW. I don't think constructs like

Code: Select all

<option .../></option>
are valid. It should be

Code: Select all

<option ...></option>

Re: FIXED: SelectTagAction doesn't work sometimes...

Posted: 29 Sep 2024 16:12
by crtrubshaw
Cheers Rickard, thanks for pointing that out :-D