ambuda-org / vidyut

Infrastructure for Sanskrit software. For Python bindings, see `vidyut-py`.
48 stars 21 forks source link

[vidyullekha] 'प्रयोग' and 'सनादि' options should reset when switching between dhatus #61

Closed vipranarayan14 closed 1 year ago

vipranarayan14 commented 1 year ago

Current behaviour

As shown in the GIF below, when switching from one dhatu to another the 'प्रयोग' and 'सनादि' options are reset in the UI but the forms are displayed with the same options that were previously selected.

vidyullekha ui bug animation 1

Currently, they can be reset only by selecting another option and then selecting the original option.

vidyullekha ui bug animation 2

Expected behaviour

The options should reset to default ("कर्तरि" and "none") when switching between dhatus.

akprasad commented 1 year ago

Fixed in dd93f39ad4af4293f26a82f315674f4fab704ca0.

@shreevatsa curious if you know what's going on above ^ from an Alpine point of view. I used some test elements and found that this.sanadi and this.prayoga had reasonable values but those values were not displayed in the <select>. I could get them displayed in <span>s and and an <input type="text> however.

If you run make debugger, first edit run-debugger.sh and remove the --debug flag, which is buggy (see comments added in dd93f39ad above.)