Skip to content

Searchable Select field do not emit global change event #3569

Closed
@dalmarcolucas

Description

@dalmarcolucas

Laravel Version: 7.23.1
Nova Version: 3.29.0
PHP Version: 7.4.8
Database Driver & Version: MySql 8.0
Operating System and Version: Ubuntu 18.04.5 LTS
Browser type and version: 85.0.4183.121 (Official Build) (64-bit)
Reproduction Repository: /
Description:
First of all: Thank you for Nova!

I am working on a custom field that want's to listen to other fields and calculate things on the client side.
For that I looked into vue dev tools events and noticed that Nova conveniently emits events on every field natively.
So I thought that I could just listen to them. And that is partially true.
Since the Form Field emits global events through the handleChange() function I can listen to events like this:

Nova.$on("title-change", function (message) {
console.log("title changed to: " + message);
});

But the SelectField, when using the option "searchable = true" does not emit this event globally. When not using the searchable option the event is emitted.
Could you guys publish the event also when the searchable option is being used?

Metadata

Metadata

Assignees

No one assigned

    Labels

    implementedFeature Request implementedrequestFeature Request

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions