Skip to content

r-select :change and onchange events do not trigger #9

@lrq3000

Description

@lrq3000

The r-select component seems to have some issues with change events (tried both :change and onchange), although onclick events do work.

Example:

<script src="https://unpkg.com/@iooxa/article"></script>
<link rel="stylesheet" href="https://unpkg.com/@iooxa/article/dist/iooxa.css">

<r-var name="x" value="A" type="String"></r-var>
<r-select bind="x" values="A,B,C,D" onchange="myAlert()"></r-select>selected: <r-display :value="x"></r-display>

<select onchange="myAlert()">
    <option value="A">A</option>
    <option value="B">B</option>
    <option value="C">C</option>
    <option value="D">D</option>
</select>

<script>
function myAlert() {
    alert('Just a useless alert to debug');
}
</script>

In the example above, the alert will display on value selection with the HTML select but not with the r-select.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions