I just noticed a strange behavior using Lift css selectors.
If I have an HTML like the following
<div id="accept-box" class="accept-box">
<button id="accept" class="accept"><lift:loc locid="accept"></lift:loc></button>
</div>
And the following Snippet
def render = {
...
"#accept" #> SHtml.ajaxButton("Accept", () => Alert("Confirmed"))
}
The selector doesn't work and I have to specify the entire path, for example
"accept-box" #> ("#accept" #> SHtml.ajaxButton("Accept", () => Alert("Confirmed")))
But if I change the parent div to
with the underscore, everything works perfectly.
From what I have seen, Lift has trouble with ids with the same prefix, when hyphenated.
Should I open an issue?