Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lrq3000 opened this issue Jan 1, 2021 · 0 comments
Open

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

lrq3000 opened this issue Jan 1, 2021 · 0 comments

Comments

@lrq3000
Copy link

lrq3000 commented Jan 1, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant