Skip to content

Values in ComboBoxes does not update when selection made #467

Closed
@Aux9

Description

@Aux9

Summary

Values in ComboBoxes does not update when selection made

Steps to Reproduce

When I try this Example here a basic usage of ComboBox its working perfectly, however the value of the input is not changing whenever new selection is made because somehow it loses focus maybe, when you try just something like this <input id="input1" onblur="testValue(this)" to test the value with a function like this :

        function testValue(el) {
            console.log(el.value);
            console.log('value: ' + document.getElementById("input1").value); 
        }

the value of the input is always empty! is there something wrong or my approach is wrong?

the aim is to verify the input value when users change selection please.

Demo Link

https://preline.co/docs/combobox.html

Expected Behavior

When user select something, the input value should change accordingly and save the user selection for further use besides it should not lose focus!

Actual Behavior

The input value is empty because it loses focus as I believe.

Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions