elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.76k stars 8.15k forks source link

[Console] Copy as functionality doesn't save default language if copying code in another language #193048

Open ElenaStoeva opened 1 week ago

ElenaStoeva commented 1 week ago

Steps to reproduce:

  1. Set as default JavaScript and cancel modal.
  2. Open modal again and this time set as default Python and click on JavaScript, the Copy code button to copy as JavaScript.
  3. Click again the Copy as button - it displays "Copy as JavaScript" even though we set the default to Python.

https://github.com/user-attachments/assets/c91d0a63-44f8-43d8-b7e3-55a4c05dee64

elasticmachine commented 1 week ago

Pinging @elastic/kibana-management (Team:Kibana Management)