altv-issues
altv-issues copied to clipboard
CEF Input-Cursor not blinking in iframes
Client/server version rc/6.0-rc12
Current behavior When a CEF is opened in which an input, text area or other input option is available, the text cursor is not displayed. By text cursor I mean the line that flashes to identify the position of the text character. In F8-Console the text cursor works.
Do you use data:
urls somewhere in your code?
I have the same problem with rc/6.0-rc13. I'm not using any data: urls but iframes.
Does it also happen outside of a iframe?
No
Same issue on 6.0-rc14
can confirm on 6.0-rc14
my mousewheel isnt working inside
can confirm on 6.0-rc14
my mousewheel isnt working inside
please create a separate issue
Same issue on rc/6.0-rc16
https://youtu.be/Pn5aPBsLTRM
>> Maybe the same from 1061? (A bug in cef and was only present in release branch)
Cannot reproduce it with a simple webview with iframe. Both scroll & input cursor work fine on 6.0-rc16
@gt4ever1988 Can you pls provide a alt:V resource that can reproduce this issue?
I have now tried 3 variants @DurtyFree:
- Open CEF / there is direct a input in the HTML ... works perfectly
- Open CEF / in the HTML there is an iFrame which is an HTML which is also in the resources. There is an input in it ... works perfectly
- Open CEF / in the HTML there is a iFrame which loads an external website. There is a input in it (the same HTML as in point nr. 2 ... Cursor does not blink
Here is example no.3:
startscript.js
let cef = new alt.WebView('http://resource/ui/index.html'); cef.focus();
ui/index.html
<!DOCTYPE html><html lang="de"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"></head><body><iframe id="bodyFrame" style="width:100vw;height:100vh;" src="https://www.LinkToExternalWebsite.de/index.html"></iframe></body></html>
index.html (on Webserver)
<!DOCTYPE html><html lang="de"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"></head><body><input type="text" name="test" value="" /></body></html>
Same Problem. No cursor. No Login on extern webviews / iFrame
In the same situation (remote iframes) input focus and unfocus events do not work either.
I can reproduce that behaviour too.
#1193 (maybe) relate to the same root cause.
Still a problem in release/8.8 https://img.revyn112.dev/data/LG95BRmJpx.mp4
The same will happen when the url will change through webview url parameter.
This still seems to be an issue. The cursor is not appearing in input fields and are not focused/blurred. I'm not using any iframes but one redirect to an external website. When I remove this redirect it works so changing the URL seems to break the cursor.
Fixed in dev/14.0-dev54
.