-
Notifications
You must be signed in to change notification settings - Fork 63
Closed
Description
I’m having some trouble using the slim-repeat
and slim-repeat-as
attributes with <option>
elements in Safari.
Here’s an example…
Slim.tag('test-binding',
`
<ul><li s:repeat="items" bind>{{data}}</li></ul>
<select><option s:repeat="items" bind>{{data}}</option></select>
`,
class extends Slim {
onBeforeCreated() {
this.items = ['one', 'two', 'three'];
}
});
When viewing this example in Safari, the <li>
elements render correctly but there are no options available when interacting with the <select>
element. The console does show the iterated elements but they are not accessible to the user (screenshot here).
This appears to be a problem for Safari on both iOS and OSX. Other major, modern browsers render both elements as expected.
Any thoughts? Thanks for your help.