Skip to content

Illustration preview doesn't update switching from custom to native #20061

@cconard96

Description

@cconard96

Code of Conduct

  • I agree to follow this project's Code of Conduct

Is there an existing issue for this?

  • I have searched the existing issues

Version

main

Bug description

Switching from a custom illustration to a native one does not update the preview until the form is saved. There is a JS error present in the console.

Uncaught TypeError: Cannot set properties of null (setting 'innerHTML')
    at #setNativeIllustration (Controller.js?v=bc8d6938:165:25)
    at HTMLDivElement.<anonymous> (Controller.js?v=bc8d6938:80:40)

Relevant log output

Page URL

No response

Steps To reproduce

No response

Your GLPI setup information

No response

Anything else?

No response

Metadata

Metadata

Assignees

Labels

FormsbetajavascriptPull requests that update Javascript code

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions